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 → Dispenser Cog
Dispenser Cog
2001-11-24, 9:51 AM #1
I need a cog which creates a bacta at a ghost position at the flick of a switch. Can anyone help me?

------------------
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
2001-11-24, 11:39 AM #2
Ahh. Pure bactaness. [http://www.plauder-smilies.com/spiny.gif]

Code:
#11/2001 GBK
Symbols
Message Activated
Surface Switch0    LinkID=1
Thing Switch1    LinkID=1
Thing Ghost
Template Bacta
End
Code
Activated:
If(GetsenderID() == 1) {
Creatething(Bacta, Ghost); }
Stop;
End

 

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


About the variables - you can use either a thing or a surface as the switch. 'Cause you didnt specify. [http://forums.massassi.net/html/smile.gif]




------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-24, 11:48 PM #3
What do I need for the bacta template?

------------------
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
2001-11-24, 11:59 PM #4
Yahoo. It works. BUT... can you make it play a sound when it is created?
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
2001-11-25, 9:18 AM #5
Sounds. Ok.

Just use the bacta tank template. If you actully want it to create a bacta tank...


Code:
#11/2001 GBK
Symbols
Message Activated
Surface Switch0    LinkID=1
Thing Switch1    LinkID=1
Thing Ghost
Template Bacta
Sound Soundage
End
Code
Activated:
If(GetsenderID() == 1) {
Creatething(Bacta, Ghost); 
Playsoundthing(Soundage, Ghost, 1.0, -1, 4, 0); }
Stop;
End

 

------------------
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!