Entity::isStatic: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 10: Line 10:
</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

a static ped will not react to natives like 'APPLY_FORCE_TO_ENTITY' or 'SET_ENTITY_VELOCITY' and oftentimes will not react to task-natives like 'Player::TASK_COMBAT_PED'. The only way I know of to make one of these peds react is to ragdoll them (or sometimes to use CLEAR_Player_TASKS_IMMEDIATELY(). Static peds include almost all far-away peds, beach-combers, peds in certain scenarios, peds crossing a crosswalk, peds walking to get back into their cars, and others. If anyone knows how to make a ped non-static without ragdolling them, please edit this with the solution.

how to i meik static entyti??

Syntax

entity.isStatic();

Required Arguments

Return value

  • Boolean

Example

// todo

See also