Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Ai APC using Smoke  (Read 3138 times)

0 Members and 1 Guest are viewing this topic.

Offline LDZ

  • Members
  • *
Ai APC using Smoke
« 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.

Offline Speeder

  • Members
  • *
    • OFP.nu
Re: Ai APC using Smoke
« Reply #1 on: 08 Jul 2010, 11:01:30 »
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.
« Last Edit: 08 Jul 2010, 11:07:17 by Speeder »
There are 10 kinds of people in this world. Those who get it, and those who don't.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Ai APC using Smoke
« Reply #2 on: 08 Jul 2010, 12:50:22 »
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. 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.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline LDZ

  • Members
  • *
Re: Ai APC using Smoke
« Reply #3 on: 08 Jul 2010, 16:58:21 »
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"];






« Last Edit: 08 Jul 2010, 17:12:07 by LDZ »

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Ai APC using Smoke
« Reply #4 on: 08 Jul 2010, 17:19:43 »
Quote
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:
« Last Edit: 08 Jul 2010, 17:21:44 by nominesine »
OFPEC | Intel Depot
RETARDED Ooops... Retired!