ArcBasicDocs

EntityType

Sets an entity's collision type.

EntityType ( entity,collision_type[,recursive] )

Parameters

entity
the entity's handle.
collision_type
the type number.
recursive (optional)
1 gives the same type to all its children too, handy for loaded models made of many parts.

Description

Gives an entity a collision type: a number of your choosing that says what it is for Collisions, such as 1 for the player, 2 for walls and 3 for enemies. 0 means it doesn't collide.

See also