HasCollision
Whether the server holds the level’s collision geometry.
true when the operator exported the level’s geometry and server.toml names it ([validation] collision,
the collision guide): RayCast answers, IsLineOfSight can say no, the floor under a player counts as the
ground of the terrain check. Without it the three functions answer nil, true and nil.
Syntax
Section titled “Syntax”HasCollision()Returns
Section titled “Returns”true when the geometry is loaded
Example
Section titled “Example”if not HasCollision() then Log("no collision geometry: rays answer nothing") endSee also
Section titled “See also”RayCast · IsLineOfSight · GetGroundZ · the The world - clock, weather, terrain, the navmesh, the geometry group of the index
