This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setunitammo [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:setunitammo [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
< | < | ||
+ | |||
+ | <WRAP tabs> | ||
+ | * [[4rpl: | ||
+ | * [[4rpl: | ||
+ | </ | ||
====== SetUnitAmmo ====== | ====== SetUnitAmmo ====== | ||
Line 6: | Line 11: | ||
===== Description ===== | ===== Description ===== | ||
- | Sets the ammo of the unit. A value of 1 is how much a packet normally delivers. | + | Sets the ammo of the unit. A value of 1 is how much a packet normally delivers.\\ |
The ammo can not exceed the max ammo, so set max ammo first. Amt values less than zero are changed to zero. | The ammo can not exceed the max ammo, so set max ammo first. Amt values less than zero are changed to zero. | ||
+ | |||
+ | :WARNING: If you are using this API in [[4rpl: | ||
===== Examples ===== | ===== Examples ===== |