Class: Entity
Lua
C++
Edit

Entity:GetVisible

This method performs a line of sight test to determine if two entities can see each other.

Syntax

Parameter Description
entity entity to test the visibility of

Returns

Returns true if the two entities have a clear line of sight between their positions, otherwise false is returned.

Remarks

This method performs a raycast between the positions of the two entities. Neither entity will block the raycast. If you want more control over the raycast, see the World:Pick command.

Copyright © 2006-2025 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation