Home   Help Search Login Register  

Author Topic: Run two script when firing??  (Read 1112 times)

0 Members and 1 Guest are viewing this topic.

Maximus-Sniper

  • Guest
Run two script when firing??
« on: 22 May 2005, 23:48:20 »
Hi all :)

Well, now i'm working with my config file to my sniper pack :)
And i have a problem :( I like to run two script when i firing with my rifle. And i like to add this as:
Code: [Select]
class EventHandlers
      {
      fired = "if ((_this select 4) == ""AMMOM82APMag"" || (_this select 4) == ""AMMOM82ATMag"") then {_this call loadFile ""\myaddon\script\weaponFX\m82fx.sqf""};";
      };

As you all can see i have added a effect smoke/fire when i firing, and it's works. But the problem is, i like to add a tracer to  ??? I want to use WolfbaneÂ's tracerfx script, so it is possible to make a another file who included \myaddon\script\weaponFX\m82fx.sqf and \wbe_tracerfx\wbe_tracerfx.sqs  ?


Thanks :)

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: Run two script when firing??
« Reply #1 on: 22 May 2005, 23:54:00 »
I would believe so.

I would assume that you just include those files in the appropriate folders then add another event handler.
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Maximus-Sniper

  • Guest
Re: Run two script when firing??
« Reply #2 on: 23 May 2005, 15:06:16 »
Hi :)

I got some help, and it's work now :) Here is how i did to run two script:

Code: [Select]
init="RAST_M82fx=loadFile ""\myaddon\script\weaponFX\m82fx.sqf""; [_This Select 0] Exec ""\wbe_tracerfx\wbe_tracerfx.sqs""";
fired="if ((_this select 4) in [""AMMOM82APMag"",""AMMOM82ATMag""]) then {_this call RAST_M82fx}";

Thanks :)