Entity/IsInWorld

From Garry's Mod
Jump to: navigation, search
 Entity:IsInWorld( )

Description

Returns whether the entity is inside a wall or outside of the map.

NOTE

Internally this function uses util.IsInWorld, that means that this function only checks Entity:GetPos of the entity. If an entity is only partially inside a wall, or has a weird GetPos offset, this function may not give reliable output.

Returns

boolean

Is the entity in world
Personal tools
Navigation