Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/ALARMBOX/slot_01_use.txt

17 lines
404 B
Text

function alarmbox_use() /* entry=256 class_id=0x0477 slot=0x01 */
{
var
referent, /* [BP+00h] type=0x69 */
item; /* [BP-02h] type=0x24 */
set_info(0x0207, *(arg_06));
process_exclude();
if (!World.getAlertActive()) {
spawn FREE.slot_3C(0x00000000);
if (Item.getMapArray(arg_06) == 0) {
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
suspend;
}
}
return;
}