Entity::hasClearLosToInFront: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
Line 11: Line 11:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Entity_function_c}}
{{Entity_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Entity API]]
[[Category:Entity API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 17:51, 1 May 2024

Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.
This is one of the most CPU demanding BOOL natives in the game; avoid calling this in things like nested for-loops

Syntax

entity.hasClearLosToInFront(entity2);

Required Arguments

  • entity2: Entity handle or object

Return value

  • Boolean

Example

// todo

See also