Wire 0 Posted January 7, 2011 Heya, I am on the last leg of getting this all done, cept i need alil hand. Im not good at scripting at all, and am looking for experts to compile this and make it working. 1) I have "hos1" who i want to addaction to. Once I approach about 3-5m of him, an action appears on him that allows me to click it entitled "Rescue Hostage" 2) Once the action is clicked, a soundclip will play (which Ive recorded). It will sound like a guy yelling "hands in the air" etc. The soundclip is called "rescue.ogg" 3) After I clicked his addaction and the sound played, he joins my team, joinsilent. Its a very simple script, cept i havent got a clue how to configure it to work. Can anyone help please? Share this post Link to post Share on other sites
mostly 4 Posted January 7, 2011 (edited) I've always had problems with using the addaction command, I can't get rid of it afterwards. What you want to do is pretty simple. Without using the addaction, I'd place a trigger with the condition: player distance hos1 < 3 and in the activation field: nul = [] execvm "rescue.sqf" Create a rescue.sqf file in your mission folder and the script should be something like this: playsound "rescue"; sleep 3; hos1 joinassilent [players name, 5]; exit The 5 is the number the hos1 will become in your group, I'm just assuming you've got a 4 man rescue team, change this number as required. I'd also search the forum for hostage rescue threads, there are quite a few. A few months ago I helped someone out with a similar problem and posted an example mission. http://forums.bistudio.com/showthread.php?t=108724 That should be what you're looking for. Edited January 7, 2011 by MOSTLY Share this post Link to post Share on other sites
Wire 0 Posted January 8, 2011 Heya Mostly, Ive given it a shot, cept I dont know where to place the "rescue" sound. i keep walking up to him and it keeps saying that it isnt found. Share this post Link to post Share on other sites
Gekkibi 11 Posted January 8, 2011 Create/edit the description.ext Edit: Example. class CfgSounds { sounds[] = {}; class engine_ignition { name = ""; sound[] = {"malfunction\engine_ignition.wav", 0.05, 1}; titles[] = {}; }; class engine_shut { name = ""; sound[] = {"malfunction\engine_shut.wav", 0.05, 1}; titles[] = {}; }; }; Share this post Link to post Share on other sites