Comradesniper 0 Posted July 12, 2006 Hello Quick question: What I am trying to do is get a siren to work on the police jeep. How do I do this? Will it be audible in multiplayer? I have a siren sound (.wav format), and to get the script to start I have been using the addAction in the units init to call it. But, I don't know how to use another addAction to stop it again... Share this post Link to post Share on other sites
ProfTournesol 956 Posted July 12, 2006 Maybe you could look at "car horn" in OFP, which i think are in fact strange kind of weapons... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CarHorn: Default { //-- scopeWeapon = protected; // do not show in briefing ammo=; // no ammo displayName=$STR_DN_HORN; reloadTime=0.0; drySound[]={Vehicles\carhorn,db-20,1}; canLock=LockNo; optics = false; enableAttack=false; magazines[] = {}; }; class TruckHorn: CarHorn { //-- drySound[]={Vehicles\carhorn,db-20,0.7}; }; class SportCarHorn: CarHorn { //-- drySound[]={Vehicles\sportcarhorn,db-20,1}; }; Share this post Link to post Share on other sites