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 → I need a cog
I need a cog
2001-12-12, 4:22 PM #1
Can someone make me a cog,that when a
panel gets damaged:
  1. An alarm will sound.
  2. The player who damaged the panel will die.
    [/list=a]
    If that can be done, it will be a great improvement to my level.
The Brick has spoken!
2001-12-12, 5:03 PM #2
Umm, ok. Credit me... [http://forums.massassi.net/html/smile.gif]

Code:
#12/2001 GBK
Symbols
Message Damaged
Surface Panel Mask=0x448
Sound Alarm
Int Idiot=0   Local
End
Code
Damaged:
Playsoundglobal(Alarm, 1.0, 0.0, 0x4);
Idiot = Getthingparent(Getsourceref());
Damagething(Idiot, 1000, 0x2, Idiot);
Stop;
End


I dont know if it works, I just typed it into the box. But it should. [http://forums.massassi.net/html/biggrin.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!