Entity:UseTriggerBounds

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

Description

Enables or disables trigger bounds.

This will give the entity a "trigger box" that extends around its bounding box by iBloatSize units in X/Y and (iBloatSize/2) in +Z (-Z remains the same).
The trigger box is world aligned and will work regardless of the object's solidity and collision group.
It will be visible as a light blue box when the ent_bbox console command is used.
Valve use trigger boxes for all pickup items. Their bloat size is 24, a surprisingly large figure.

Arguments

boolean enable

Should we enable or disable the bounds.

Arguments

number bloat=0

The distance/size of the trigger bounds.
Personal tools
Navigation