I've modified the 00_aisleep.cog like so:
symbols
message startup
message entered
message user0
thing door
thing enemy1 linkid=1
thing enemy2 linkid=1
thing enemy3 linkid=1
thing enemy4 linkid=1
thing enemy5 linkid=1
thing ally1 linkid=2
thing ally2 linkid=2
thing ally3 linkid=2
thing ally4 linkid=2
thing ally5 linkid=2
sector trigger
sound stleader
sound rtleader
int awake=0 local
end
# ==================================================
======================================
code
startup:
AISetMode(GetSenderID(1), 0x2000);
AISetMode(GetSenderID(2), 0x2000);
Return;
# ........................................................................................
entered:
MoveToFrame(door, 1, 8.0);
AISetMoveSpeed(GetSenderID(1), 1.5);
AISetMoveThing(GetSenderID(1), ghostpos);
WaitForStop(enemy5);
MoveToFrame(door, 0, 8.0);
AIClearMode(GetSenderID(1), 0x2000);
AIClearMode(GetSenderID(2), 0x2000);
AISetMode(GetSenderID(1), 0x200);
AISetMode(GetSenderID(2), 0x200);
PlaySoundThing(stleader, enemy1, .75, 0, 4.75, 0x80);
PlaySoundThing(rtleader, ally1, .75, 0, 4.75, 0x80);
Return;
# ........................................................................................
user0:
call entered;
return;
end
And it's not working. Where am I going wrong?
Also, I didn't put user0 there and have no idea why it is being used, LEC put it there.
symbols
message startup
message entered
message user0
thing door
thing enemy1 linkid=1
thing enemy2 linkid=1
thing enemy3 linkid=1
thing enemy4 linkid=1
thing enemy5 linkid=1
thing ally1 linkid=2
thing ally2 linkid=2
thing ally3 linkid=2
thing ally4 linkid=2
thing ally5 linkid=2
sector trigger
sound stleader
sound rtleader
int awake=0 local
end
# ==================================================
======================================
code
startup:
AISetMode(GetSenderID(1), 0x2000);
AISetMode(GetSenderID(2), 0x2000);
Return;
# ........................................................................................
entered:
MoveToFrame(door, 1, 8.0);
AISetMoveSpeed(GetSenderID(1), 1.5);
AISetMoveThing(GetSenderID(1), ghostpos);
WaitForStop(enemy5);
MoveToFrame(door, 0, 8.0);
AIClearMode(GetSenderID(1), 0x2000);
AIClearMode(GetSenderID(2), 0x2000);
AISetMode(GetSenderID(1), 0x200);
AISetMode(GetSenderID(2), 0x200);
PlaySoundThing(stleader, enemy1, .75, 0, 4.75, 0x80);
PlaySoundThing(rtleader, ally1, .75, 0, 4.75, 0x80);
Return;
# ........................................................................................
user0:
call entered;
return;
end
And it's not working. Where am I going wrong?
Also, I didn't put user0 there and have no idea why it is being used, LEC put it there.
Massassi, delivering a million smiles a day. Well...almost. ;-)