PDA

View Full Version : Respawn message



Giraffe
09-21-2003, 12:44 PM
I'm trying to run some code when power ups respawn. I whipped up some test cog:


flags=0x100
symbols

message respawn
thing item_respawn_0

end

code

respawn:
print("respawn message called!");
print(GetSenderRef());

end

However, when the item respawns, nothing is printed on the screen.

Any thoughts?

------------------
How do you get an evil herbivore?
Evil G (http://people.pwf.cam.ac.uk/cm319/)

DogSRoOL
09-21-2003, 01:40 PM
I assume you've properly added this cog as a class cog to the correct template(s)?

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!
America is a giant horn-dog.

[Anoying posts] + 1.

[This message has been edited by DogSRoOL (edited September 21, 2003).]