Skip to content

EntityType

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

EntityType

EntityType:Void entity:Int32, collision_type:Int32, recursive:Int32=0
Parameter Mode Type Default Description
entity In Int32 required The entity.
collision_type In Int32 required Collision type, 0 to 999.
recursive In Int32 0 True to give the type to all children as well. Defaults to False.

Description

Gives an entity a collision type, a number from 1 to 999 that Collisions uses to decide which entities may hit which. Type 0 is the default and takes the entity out of collision checking altogether. Entities of the same type do not collide with each other unless you add a rule for that pair.

With recursive set, the type is also given to every child of the entity, and to their children.

Changing the type resets the entity's collision movement, as ResetEntity does.

Related Commands

CollisionEntity, EntityBox, EntityCollided, EntityRadius, GetEntityType, ResetEntity

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally