Home   Help Search Login Register  

Author Topic: Help! Add ammo into a fired script  (Read 1170 times)

0 Members and 1 Guest are viewing this topic.

Maximus-Sniper

  • Guest
Help! Add ammo into a fired script
« 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-

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Help! Add ammo into a fired script
« Reply #1 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' )
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Maximus-Sniper

  • Guest
Re:Help! Add ammo into a fired script
« Reply #2 on: 15 Aug 2004, 10:31:29 »
Thx man! Now i iam going to try :)

Maximus-Sniper

  • Guest
Re:Help! Add ammo into a fired script
« Reply #3 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

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Help! Add ammo into a fired script
« Reply #4 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...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.