Scripting/Squirrel/Functions/Object.ID: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function returns an object's ID. == Syntax == Object.ID; == Arguments == '''N/A''' == Example == <source lang=squirrel> function onScriptLoad ( ) { local ids = "";...") |
No edit summary |
||
Line 22: | Line 22: | ||
} | } | ||
</source> | </source> | ||
== Related Functions == | |||
{{Scripting/Squirrel/Functions/Object_Functions}} | |||
[[Category:Scripting/Squirrel/Functions/Object_Functions]] |
Latest revision as of 18:33, 30 January 2017
This function returns an object's ID.
Syntax
Object.ID;
Arguments
N/A
Example
function onScriptLoad ( )
{
local ids = "";
for ( local i=0; i< GetObjectCount(); i++)
{
if ( FindObject( i ) ) ids = ids + ", " + FindObject( i ).ID;
}
print( "Loaded objects with ids: " + ids );
}