Page 1 of 1

Pick up an object that plays a sound once when picked up

Posted: January 19th, 2012, 1:03 pm
by lzilberm
Hey everyone,

It would be great if someone could help! :-D
The title basically says it all....I want to have objects in my game, that when picked up, they make a 'ding!' sound and then disappear, similar to when players collect coins in video-games.
The help would be much appreciated and thanks in advance!

~~lzilberm

Re: Pick up an object that plays a sound once when picked up

Posted: January 19th, 2012, 2:39 pm
by kddekadenz
You are using FPS mode?
Then place a mapmodel and set the trigger type to 12. This will make it disappear, when activated.
Save your map and write into the .cfg (located in packages/base/fps)

Code: Select all

 beep = (registersound "chaze/select" 255)
level_trigger_1 = [sound $beep]
Open your map and set the trigger of the mapmodel to 1.

You're done ;)

Re: Pick up an object that plays a sound once when picked up

Posted: January 19th, 2012, 3:30 pm
by lzilberm
Thanks you soooo much kdd!!! It worked like a charm!