erfd Posted July 3, 2010 Report Share Posted July 3, 2010 Hey, can some look at the edits I made to the M4a1.script from the la mod? Im trying to put the rifle in the lapd, lasd, and chp patrol cars, but when I run the mod, the rifle is not availible in my squad. Thanks for any help. Quote Link to comment Share on other sites More sharing options...
USman Posted July 3, 2010 Report Share Posted July 3, 2010 I think this may be your problem, im kinda new to scripting myself: if(p.IsValid() && (p.IsLinkedWithPerson() || p.IsCarryingPerson() || p.IsEquipped() || p.IsPulling() || p.GetFirehoseID()!=0 || p.GetEnteredCarID() != -1)) return false; Vehicle v(Target); if (v.IsValid() && !v.IsDestroyed() && StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/05 US Army/hmmwv.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/05 US Army/us_army_truck.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/05 US Army/blackhawk.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 La Police/cv_chp.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 La Police/cv_lapd.e4p") == 0) ?? { return true; } return false; I think you for got your || where i incerted the question marks.Hope this helps, USman Quote Link to comment Share on other sites More sharing options...
erfd Posted July 3, 2010 Author Report Share Posted July 3, 2010 Thats not it, the last line isn't sussposed to have || (accroding to xplorer and the original script) at the end. Thanks though. Quote Link to comment Share on other sites More sharing options...
USman Posted July 3, 2010 Report Share Posted July 3, 2010 is it just one car or all of the ones you added? Did you add the command to the officers?Wish you luck, USman Quote Link to comment Share on other sites More sharing options...
erfd Posted July 4, 2010 Author Report Share Posted July 4, 2010 Yes all the officers have the command (check my topic in the submods). None of the cars I added are working. Quote Link to comment Share on other sites More sharing options...
erfd Posted July 5, 2010 Author Report Share Posted July 5, 2010 Problem Fixed, had to lift restrictions on script that only allowed m4 to be in cars with flashbangs. Quote Link to comment Share on other sites More sharing options...