Balschoiw 0 Posted March 9, 2007 Just a little question. Some vehicles have horns. Can we acess them via scripting ? I already had a hinted eventhandler fired in the init of a truck but it showed no "fired" stuff. Quite obvious. Anyone knows a way to acess the horns ? Share this post Link to post Share on other sites
Big Dawg KS 6 Posted March 9, 2007 No, you wouldn't be able to use them just like you can't 'fire' (pull the trigger of) an empty M16 - you know that click sound when it's out of ammo? Well horns work the same way. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted March 9, 2007 Why can't you just use playsound/say? Create a CfgSounds class for the same horn sound the vehicle uses in your description.ext, I'm sure the effect will be completely identical to default horns for players. Share this post Link to post Share on other sites
the unknown 0 Posted March 9, 2007 On the Biki I found a list of horns they are under the weapons section mabey you can use those some how. biki Share this post Link to post Share on other sites
Balschoiw 0 Posted March 9, 2007 They have no ammo and therefore the driver wont "fire" the weapon TruckHorn for example. Quote[/b] ]Why can't you just use playsound/say? Create a CfgSounds class for the same horn sound the vehicle uses in your description.ext Good idea. But how can I access the horn-sound ? Where is it located ? Do I have to manually extract the pbo to get the soundfile and pack it to the mission, or can I acess it like the musictracks somehow ? I guess it´s packed in the sounds.pbo, right ? Share this post Link to post Share on other sites
-SPA-LynxEye 0 Posted March 24, 2007 Be sure that you only adding a horn once, and nobody more can adding it another more. Well try this sequence: As example, a motorbike. (vehicle player) addWeapon "SportCarHorn" Well, now its added, but cant be 'fired'... so... add the "ManualFire" action and you will 'horn' hehehhe This need to be handled with a lot of eyes, because this issue can cause weird behaviour over vehicles with gunners. Share this post Link to post Share on other sites
-SPA-LynxEye 0 Posted March 24, 2007 Another detail that can be added via addWeapon and then action "MANUALFIRE": Take a MH6, add it magazines, add it weapon, add it action "MANUALFIRE"...  and voila! MH6 rdy to combat Another issue in MP with 'added' horns... it seems only the player that is 'horning' can hear it  , but adding magazine,weapon and action "MANUALFIRE" to certain vehicles is 'rocket science'. Share this post Link to post Share on other sites