Entity::hasClearLosToInFront: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 13: Line 13:
{{Entity_function_c}}
{{Entity_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Entity API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:08, 11 May 2017

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