Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/LAZEREGG/slot_07_hatch.txt

24 lines
550 B
Text

function lazeregg_hatch() /* entry=352 class_id=0x090C slot=0x07 */
{
var
referent, /* [BP+00h] type=0x69 */
laser, /* [BP-02h] type=0x24 */
id; /* [BP-04h] type=0x69 */
set_info(0x0210, *(arg_06));
process_exclude();
id = 0;
id = Egg.getEggId(arg_06);
/* loop_selector laser in nearby_items(shape=IR_SENSOR, origin=arg_06) */
while (!condition) {
if (Item.getFrame(laser) == 1) {
return;
}
else {
spawn FREE.slot_31(pid, laser, 0x00000000);
suspend;
}
/* loopnext */
}
return;
}