Landmine Component
This component belongs to the following package:
- com.yahaha.props.traps
Description
This Landmine Component configures a trap that detonates when triggered, causing damage based on its blast radius.
Properties
| Properties | Description |
|---|---|
| Bomb Config | Configure multiple damage radii and their associated damage values. Upon detonation, the bomb checks each radius in order from top to bottom, applying damage to targets within the first applicable radius. Radius: Defines the area of effect for the landmine's explosion. Targets within this radius will be affected by the bomb's damage upon detonation. Damage: Specifies the damage dealt to targets located within the landmine's effective radius. |
| Trigger Nearby Bombs | Specifies if other bombs in proximity will be triggered to explode when this bomb detonates, allowing for chain reactions. Enabled by default. |
| Activation Delay | The time interval in seconds from when the bomb is triggered to when it is fully activated, allowing for strategic placement and timing. |
| Cooldown Time | The duration in seconds during which the trap can be closed without having exploded. During this time, it cannot be re-triggered. |
| Trigger Object | The YahahaObject used to trigger the activation of the landmine, allowing for precise control over its activation. |
Trigger
Events:
- LandmineEvent.OnLandmineTrigger
- Description:
- An event that fires when Landmine is triggered
- Description:
- LandmineEvent.OnLandmineExplode
- Description:
- An event that is triggered when a Landmine explodes
- Description:
- LandmineEvent.OnLandmineStun
- Description:
- An event that is triggered when Landmine is turned off, and reactivates after a certain cooldown
- Description:
- LandmineEvent.OnLandmineStunEnd
- Description:
- An event that is triggered when Landmine is reactivated
- Description: