Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → thing in sector....
thing in sector....
2005-05-25, 8:00 AM #1
Hi if it possible to make a cog that makes when thing X enters room X the happens .....
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2005-05-25, 8:09 AM #2
Code:
# 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
May the mass times acceleration be with you.
2005-05-28, 2:47 AM #3
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
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2005-05-28, 2:48 AM #4
lol i found the error just after posting:o :o
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%

↑ Up to the top!