MTA:Eir/functions/engineGetActiveStreamingEntities: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function returns a table of MTA entities that have a streaming garbage collection node allocated. Those entities can be de...")
 
(Renamed template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{MTA:Eir/Client_function}}
__NOTOC__  
__NOTOC__  
This function returns a table of MTA entities that have a [[GTA:SA_Streaming_Garbage_Collection|streaming garbage collection]] node allocated. Those entities can be deallocated once GTA:SA has reached its maximum '''streaming memory''' (the setting in your Video options tab). Certain types of entities can only render if they have a streaming node allocated.
This function returns a table of MTA entities that have a [[GTA:SA_Streaming_Garbage_Collection|streaming garbage collection]] node allocated. Those entities can be deallocated once GTA:SA has reached its maximum '''streaming memory''' (the setting in your Video options tab). Certain types of entities can only render if they have a streaming node allocated.

Latest revision as of 08:07, 28 September 2023

This function returns a table of MTA entities that have a streaming garbage collection node allocated. Those entities can be deallocated once GTA:SA has reached its maximum streaming memory (the setting in your Video options tab). Certain types of entities can only render if they have a streaming node allocated.

Syntax

table engineGetActiveStreamingEntities ()

Returns

Returns a table of all MTA entities that reside inside of the streaming garbage collector.

Example

Click to collapse [-]
Client

This snippet makes every entity inside of the streaming garbage collector transparent.

addCommandHandler( "alpha_test",
    function()
        local entities = engineGetActiveStreamingEntities();

        for m,n in ipairs( entities ) do
            setElementAlpha( n, 101 );
        end
    end
);