Entity::getScript: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 11: Line 11:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Entity_function_c}}
{{Entity_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 18:03, 1 May 2024

All ambient entities in-world seem to have the same value for the second argument (Any *script), depending on when the scripthook was activated/re-activated. I've seen numbers from ~5 to almost 70 when the value was translated with to_string. The function return value seems to always be 0.

Syntax

entity.getScript(script);

Required Arguments

  • script: ScrHandle

Return value

  • ScrHandle

Example

// todo

See also