Garry's Mod Wiki

Garry's Mod Wiki

  boolean Entity:IsInWorld()

Description

Returns whether the entity is in the world (not inside a wall or outside of the map).

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

1 boolean
False if the entity is inside a wall or outside of the map, true otherwise.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...