Blockland Files > Add-Ons
Extended playSound Events
KoopaScooper:
--- Quote from: Space Guy on March 08, 2009, 07:17:42 AM ---Client->playSound [Sound Datablock]
--- End quote ---
I requested that before. I'm not implying that you did it for me.
Also, this is very useful.
jirue:
I love you ;)
Is there a way for you to do bots too?
Portal cores :3
Space Guy:
[0] onBotTouch -> Self -> cancelEvents
[400] onBotTouch -> Bot -> playSound ["Help!"]
Bots are player objects. This should play whatever sound you want when the bot stops touching the brick you put it on i.e. when it's blown off the structure.
KoopaScooper:
Or like this:
(0) onBotTouch -> Bot -> playSound ["sound"]
(0) onBotTouch -> Self -> toggleEventEnabled -> 0 1 2
(4000) onBotTouch -> Self -> toggleEventEnabled -> 0 1 2
Replace the bolded four with any number. Leaving it with four will make the sound play every four seconds.
Space Guy:
The 'cores' in Portal only make sounds when moved away from where they normally are, or picked up - that would make them play sounds while attached to GLaDOS instead.