Jump to content
Sign in to follow this  
thetrooper

playSound, where's the classes?!

Recommended Posts

I want to play a sound usually under in triggers>Voice, 'Radio noise 2' by a SQF file. Can't find it's class name for it anywhere?

Also, is there a way to play it but only for a few seconds and not have it play all the time?

Share this post


Link to post
Share on other sites

Save the mission with the trigger, look for that trigger in mission.sqm and see the file it plays.

Share this post


Link to post
Share on other sites

Good idea! Now, how can I only play it for a set amount of time?

Share this post


Link to post
Share on other sites

If you need to play it for a certain amount of time before it ends, do this:

soundobject = "HeliHEmpty" createVehicleLocal [0, 0, 0];
soundobject spawn
{
_this attachTo [vehicle player, [0, 0, 0]];
_this say2D "sound";
sleep 4;
deleteVehicle _this;
};

Share this post


Link to post
Share on other sites

ok, what bits do I need to change and to what? What do they refer to?

"HeliHEmpty"

_this

"sound"

Share this post


Link to post
Share on other sites

Just "sound" to the one you discovered in mission.sqm.

Share this post


Link to post
Share on other sites

OK, problem I got: The sound I want to use is under the effects>Trigger>Radio Walkie. The class for this is radio_walkie1_EP1. It doesn't seem to find it?

Edited by TheTrooper

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×