Classes:RedCard
Jump to navigation
Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
|
| Red keycard | |||
|---|---|---|---|
| Actor type | Key | Game | |
| DoomEd Number | 13 | Class Name | RedCard |
| Spawn ID | 86 | Identifier | T_REDKEYCARD |
Classes: Inventory→Key→DoomKey→RedCard
A Red keycard that opens red doors in Doom.
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 RedCard : DoomKey
{
Default
{
Inventory.Pickupmessage "$GOTREDCARD";
Inventory.Icon "STKEYS2";
}
States
{
Spawn:
RKEY A 10;
RKEY B 10 bright;
loop;
}
}
DECORATE definition
|
Warning: This is legacy code, kept for archival purposes only. DECORATE was effectively deprecated with the introduction of ZScript. UZDoom internally uses the ZScript definition above. |
ACTOR RedCard : DoomKey { Inventory.PickupMessage "$GOTREDCARD" Inventory.Icon "STKEYS2" States { Spawn: RKEY A 10 RKEY B 10 Bright Loop } }
