OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: LDZ on 07 Jul 2010, 04:28:41
-
Hi i am new to the forum.
I have use´ed the search function and didn't find any help for my problem.
I have a APC that drives to his first waypoint, this waypoint is a unloud cargo WP and now the problem.
I want/ I tried to use the AI commander of the APC(its an amtrac) to lunch the smoke grandes of the apc on when the amtrac reaches the WP.
I have written in the "on activation" field : Av1<--the APC action "smoke"<-- the problem
I cant find anywhere the proper command and really dont have any clue how to make it work.
I know i am a little noobi but I dont want to write any scripts(because i cant write them and this is not a script worth) and with the action command it should work. If PPL can the ai get to bailout with action and eject.the smoke shoud´t be a problem.
thx for the invested time in the topic.
-
I guess you could just create a smokeshell at the Av1's location:
mysmoke = "SmokeShell" createVehicle [(getPos Av1 select 0),( getPos Av1 select 1),1];
Just execute it from the on activation on the waypoint, or via trigger.
-
The command you are looking for is fire as in...
myAPZ fire ["muzzle","magazine"]
This is what you need to do. Give your APC a name. Find out what it's guns are called. This information can be found in the OFPEC Comref (http://www.ofpec.com/COMREF/index.php?action=read&id=210). There you will get the name for the muzzle and the magazine.
Most smoke launcers are named smokelauncher and their magazines are usually called smokelaunchermag. In that case the above syntax would read something like this:
myAPZ fire ["smokelauncher","smokelaunchermag"]
Note: The exact syntax may be a bit different. I wrote this from memory. But it should give you something to start with. Good luck.
-
thx for the answers but they are not helping much the full fire command is "unit fire [muzzle, mode, magazine]"
I have try this before writing in the forum but no effect.
i dont now what mode is and where i can find it and what it does.
in the comref there is no muzzle and mode for the smokelauncher.
speeder your solution is a bypass but i woude miss the sounds and animation so the wow effect is away.
HALP NEED HALP PLX i am desperate
oh and the i have arma 2 with oa.
I have find a soultion!!!!
write unit fire ["SmokeLauncher"];
-
I have find a soultion!!!!
write unit fire ["SmokeLauncher"];
:good: Figuring something out on your own is the essence of good scripting. And welcome to the forums by the way. I just noticed you registered yesterday...
:welcome: