Guest francismori7 Posted July 10, 2008 Report Share Posted July 10, 2008 Oh, whats the difference between yours and Nyox's?Nyox's is a second siren, mine is only a air horn. Link to comment Share on other sites More sharing options...
Guest Caddi17 Posted July 10, 2008 Report Share Posted July 10, 2008 Nyox's is a second siren, mine is only a air horn.Ok, ill take yours then, where do i put it? Link to comment Share on other sites More sharing options...
Guest firefighter116 Posted July 10, 2008 Report Share Posted July 10, 2008 ok so does the air horn work now. does it just honk and go off or is it still continuious im confused Link to comment Share on other sites More sharing options...
Guest Caddi17 Posted July 10, 2008 Report Share Posted July 10, 2008 ok so does the air horn work now. does it just honk and go off or is it still continuious im confusedim prety sure its fixed, it just goes on and off Link to comment Share on other sites More sharing options...
Newfoundking Posted July 10, 2008 Report Share Posted July 10, 2008 okay I want that one, that is over the siren Link to comment Share on other sites More sharing options...
Guest Caddi17 Posted July 10, 2008 Report Share Posted July 10, 2008 do you guys know how to install it or are u waiting on where to put it? Link to comment Share on other sites More sharing options...
Guest francismori7 Posted July 10, 2008 Report Share Posted July 10, 2008 Ok, ill take yours then, where do i put it?airhorn.wav: Emergency 4\Mods\Los Angeles Mod v1.5\Audio\Fx\sirensCreate a new file in "Emergency 4\Mods\Los Angeles Mod v1.5\Scripts\Game\Command" named "LAHorn.script". Put this code in it:int DummyGroup = 22;object VcmdHorn : CommandScript{ VcmdHorn() { SetIcon("sirens"); SetCursor("sirens"); SetRestrictions(RESTRICT_SELFEXECUTE); SetPossibleCallers(ACTOR_VEHICLE); } bool CheckPossible(GameObject *Caller) { if (!Caller->IsValid()) return false; return true; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if (!Target->IsValid() || Target->GetID() != Caller->GetID()) return false; return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { Vehicle v(Caller); int hornsoundID; Vector CarPos = v.GetPosition(); hornsoundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/airhorn.wav", CarPos, false); //Audio::StopSample(hornsoundID); }};object DummyHasSiren : CommandScript{ DummyHasSiren() { SetGroupID(DummyGroup); } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { return false; } void PushActions(GameObject *Caller, Actor *Target, int childID) { }};Add the command to all the cars you want it to in the editor. The command is "VcmdHorn".PS: Everything is fixed and works perfectly.Airhorn.wav uploaded: Link to comment Share on other sites More sharing options...
Guest Caddi17 Posted July 10, 2008 Report Share Posted July 10, 2008 Alright thanks man, looking foward to using it Link to comment Share on other sites More sharing options...
Nyox Posted July 11, 2008 Report Share Posted July 11, 2008 i have also installed your script and it works perfectly.But i still have the icon problem.is there a way to fix it?Thanks Link to comment Share on other sites More sharing options...
Guest Caddi17 Posted July 11, 2008 Report Share Posted July 11, 2008 Umm, i did what u told me to do but i either dont hae the icon or or didnt workEDIT: never mind i got it working Link to comment Share on other sites More sharing options...
Hoppah Posted July 11, 2008 Report Share Posted July 11, 2008 Or try this, a shorter version (not tested!). object VcmdHorn : CommandScript{ VcmdHorn() { SetIcon("sirens"); SetCursor("sirens"); SetRestrictions(RESTRICT_SELFEXECUTE); SetPossibleCallers(ACTOR_VEHICLE); } bool CheckPossible(GameObject *Caller) { if (!Caller->IsValid()) return false; return true; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if (!Target->IsValid() || Target->GetID() != Caller->GetID()) return false; return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { Audio::PlaySample3D("mod:Audio/FX/Sirens/airhorn.wav", Caller->GetPosition(), false); }}; Link to comment Share on other sites More sharing options...
Guest francismori7 Posted July 11, 2008 Report Share Posted July 11, 2008 Hoppah, you should include this in 1.7 because LA uses many times the air horn. Link to comment Share on other sites More sharing options...
aleksanderwoods Posted July 11, 2008 Report Share Posted July 11, 2008 Where shall I put it? Link to comment Share on other sites More sharing options...
Guest francismori7 Posted July 11, 2008 Report Share Posted July 11, 2008 Where shall I put it?In a new file called LAHorn.script in Scripts/Game/Commands directory of the mod. Link to comment Share on other sites More sharing options...
Hoppah Posted July 11, 2008 Report Share Posted July 11, 2008 Hoppah, you should include this in 1.7 because LA uses many times the air horn.No, it's not usefull. I would prefer a whole menu where you can between sirens (yelp, horn, wail etc..), but that's only possible in missionscripts. Link to comment Share on other sites More sharing options...
aleksanderwoods Posted July 11, 2008 Report Share Posted July 11, 2008 The airhorn dosen't play when I try to use it. Link to comment Share on other sites More sharing options...
james23222000 Posted July 11, 2008 Report Share Posted July 11, 2008 No, it's not usefull. I would prefer a whole menu where you can between sirens (yelp, horn, wail etc..), but that's only possible in missionscripts.How come? Link to comment Share on other sites More sharing options...
Hoppah Posted July 11, 2008 Report Share Posted July 11, 2008 Because freeplay doesn't use an active script. Link to comment Share on other sites More sharing options...
Guest andrewonice Posted July 11, 2008 Report Share Posted July 11, 2008 Or try this, a shorter version (not tested!). I used your version and it works perfectly. Link to comment Share on other sites More sharing options...
Guest cop ford Posted July 11, 2008 Report Share Posted July 11, 2008 can i get help with this air horn. my problem is that i don't know how to add the horn and how to add it to the script and how to get the horn on police cars can i get some help please Link to comment Share on other sites More sharing options...
Hoppah Posted July 11, 2008 Report Share Posted July 11, 2008 can i get help with this air horn. my problem is that i don't know how to add the horn and how to add it to the script and how to get the horn on police cars can i get some help pleaseWhy did you make a NEW TOPIC for your question? Anways, I've merged your post with this topic.Everything is explained here. It's not hard, just take your time. Link to comment Share on other sites More sharing options...
aleksanderwoods Posted July 11, 2008 Report Share Posted July 11, 2008 Yeay! I work perfectly now Link to comment Share on other sites More sharing options...
Guest cop ford Posted July 11, 2008 Report Share Posted July 11, 2008 i still don't get this Link to comment Share on other sites More sharing options...
CrownVictoriaCop Posted July 12, 2008 Report Share Posted July 12, 2008 I installed the long version, and it works fine. However, the command name comes up as "Vcmdhorn" instead of "Air horn" or something like that. Link to comment Share on other sites More sharing options...
Newfoundking Posted July 12, 2008 Report Share Posted July 12, 2008 thats because it is a vehicle command horn. I geuss its easier to identify the LA mod ones that way Link to comment Share on other sites More sharing options...