Item Ammo
Description
Checks the target player's current ammo count against a number expression. The count comes from the active ammo tracker of the weapon the player is using. Only players are matched; if the player has no active ammo tracker, the count is treated as 0 and is still evaluated against the expression.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| ammo | a | The ammo amount to match. Supports number expressions (e.g. >0, 5, <10) |
the inline argument |
Examples
Conditions:
- itemAmmo{ammo=>0} @self
Skills:
- message{m="Out of ammo!"} @self ~onUse ?itemAmmo{a=0}