Classes:RocketBox
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
|
| Rocket box | |||
|---|---|---|---|
| Actor type | Ammo | Game | |
| DoomEd Number | 2046 | Class Name | RocketBox |
| Spawn ID | 141 | Identifier | T_ROCKETBOX |
Classes: Inventory→Ammo→RocketAmmo→RocketBox
A box containing five rockets.
ZScript definition
| Note: The ZScript definition below is for reference and may be different in the current version of UZDoom. The most up-to-date version of this code can be found on UZDoom GitHub. |
class RocketBox : RocketAmmo
{
Default
{
Inventory.PickupMessage "$GOTROCKBOX";
Inventory.Amount 5;
}
States
{
Spawn:
BROK A -1;
Stop;
}
}
DECORATE definition
| Warning: This is legacy code, kept for archival purposes only. DECORATE is deprecated in GZDoom and is completely superseded by ZScript. GZDoom internally uses the ZScript definition above. |
ACTOR RocketBox : RocketAmmo { Inventory.PickupMessage "$GOTROCKBOX" // "Picked up a box of rockets." Inventory.Amount 5 States { Spawn: BROK A -1 Stop } }