OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Maximus-Sniper on 15 Aug 2004, 02:19:27

Title: Help! Add ammo into a fired script
Post by: Maximus-Sniper on 15 Aug 2004, 02:19:27
Hei
Can someone please please help me with to add a new ammo into a fired eventhandles??

Here is how it looks now :

class EventHandlers
            {
            fired = "if ((_this select 4) == ""AMMOM82AP"") then {_this call loadFile ""\BAB\FX\m82fx.sqf""};";
      };

But i like to add AMMOM82AT into same line or somthing, can someone help me??

-Bearny-
Title: Re:Help! Add ammo into a fired script
Post by: h- on 15 Aug 2004, 07:25:50
Well, not quite sure what you're getting at, but:

class EventHandlers
            {
           fired = "if ((_this select 4) == ""AMMOM82AP"" || (_this select 4) == ""AMMOM82AT"") then {_this call loadFile ""\BAB\FX\m82fx.sqf""};";
      };

(btw, || means 'or' )
Title: Re:Help! Add ammo into a fired script
Post by: Maximus-Sniper on 15 Aug 2004, 10:31:29
Thx man! Now i iam going to try :)
Title: Re:Help! Add ammo into a fired script
Post by: Maximus-Sniper on 15 Aug 2004, 10:43:05
Don't work :(
It's FXsmoke to my M82A1 Sniper riffle, Its work on that AMMOM82AP but not AMMOM82AT
Title: Re:Help! Add ammo into a fired script
Post by: h- on 15 Aug 2004, 11:19:10
That's odd...
That example should work... Of course, no 100% guarantees :P

Seeing your script might help though...