Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Addons & Mods Depot
»
OFP - Addons & Mods General
(Moderator:
Gnat
) »
Help! Add ammo into a fired script
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
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-
Logged
h-
OFPEC Site
Administrator
Formerly HateR_Kint
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' )
Logged
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
Logged
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
Logged
h-
OFPEC Site
Administrator
Formerly HateR_Kint
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
Seeing your script might help though...
Logged
Project MCAR
---
Northern Fronts
---
Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Addons & Mods Depot
»
OFP - Addons & Mods General
(Moderator:
Gnat
) »
Help! Add ammo into a fired script
Top of page