Entity::setLoadCollisionFlag: Difference between revisions

From RAGE Multiplayer Wiki
(add information)
 
Line 14: Line 14:
</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 17:52, 1 May 2024

Loads collision grid for an entity spawned outside of a player's loaded area. This allows peds to execute tasks rather than sit dormant because of a lack of a physics grid.

Certainly not the main usage of this native but when set to true for a Vehicle, it will prevent the vehicle to explode if it is spawned far away from the player.

Syntax

entity.setLoadCollisionFlag(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also