PDA

View Full Version : thing in sector....



G-Man
05-25-2005, 11:00 AM
Hi if it possible to make a cog that makes when thing X enters room X the happens .....

darthslaw
05-25-2005, 11:09 AM
# Jedi Knight COG Script
#
# When thing x enters room y, stuff happens

symbols

sector room_x
thing thing_x
message entered

end
# ========================
code
# ........................
entered:
if(GetSenderRef() == room_x && GetSourceRef() == thing_x) call do_stuff;

stop;
# ........................
do_stuff:
//your code here

stop;
# ........................
end

That ought to work

G-Man
05-28-2005, 05:47 AM
hmm thx but it don't work. maybe i made a mistake. after thing x entered sector x door x should move to frame 0

G-Man
05-28-2005, 05:48 AM
lol i found the error just after posting:o :o