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

18 lines
424 B
Text

function switchns_use() /* entry=144 class_id=0x02A3 slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
spawn SWITCH.slot_20(arg_06);
if (Item.getMapArray(arg_06) == 0) {
if (Item.getFrame(arg_06) == 0) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
return;
}
else {
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
suspend;
}
}
return;
}