Spike Trap
This component belongs to the following package:
- com.yahaha.props.traps
Description
This is the Spike Trap smart asset that activates based on relative probability weights and time intervals. It sets a spike trap taht can continuously fall and damage any colliding objects, or it can be triggered when players enter its designated area.
Attribute
| Attributes | Description |
|---|---|
| Damage Trigger Object | The YahahaObject that serves as the trigger for the trap, activating damage when an object enters its detection area. |
| Loop Mode Weight | The relative probability of the loop mode being selected. Higher weights increase the likelihood of continuous activation. A weight of 0 means this mode will not be activated. Ranges from 0 to 10000. Default value: 0. |
| Activation Interval | Interval of activation of traps |
| Trigger Mode Weight | The relative probability of the trigger mode being selected. Higher weights increase the likelihood of continuous activation. A weight of 0 means this mode will not be activated. Ranges from 0 to 10000. Default value: 0. |
| Trigger Object | The YahahaObject that acts as the trigger for the trap, activating damage when a player enters its trigger box. |
Trigger
Events:
- SpikeTrap..OnSpikeTrapActivate
- Description:
- Triggers when Spike Trap is activated
- EventArgs:
- Description: