OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: NightJay0044 on 27 Jul 2009, 20:49:44

Title: AI Smoke grenade
Post by: NightJay0044 on 27 Jul 2009, 20:49:44
Hi guys this one should be an easy one for you to answer from me,  :) since I rarely get responses.

How do I make a single AI guy have a green smoke grenade and then throw it? I'm not talking about the M203 launcher, just a single grenade and throwing it , thanks..
Title: Re: AI Smoke grenade
Post by: Worldeater on 27 Jul 2009, 22:41:23
1. Make sure the soldier has a smoke grenade:
Code: (Unit's "Initialization") [Select]
this addMagazine "SmokeShellGreen";
2. Add a trigger and put the following line in the "On Activation" field (my test soldier was named "dude", so change this accordingly):
Code: (Trigger's "On Activation") [Select]
dude fire ["SmokeShellMuzzle"];
3. Activate the trigger... :)

Note: If the soldier has more than one smoke grenade he will throw them in the order they were given to him.
Title: Re: AI Smoke grenade
Post by: NightJay0044 on 28 Jul 2009, 05:34:13
Hey thanks worldeater for the reply, it works just fine.
Title: Re: AI Smoke grenade
Post by: Barbolani on 28 Jul 2009, 09:47:34
Have someone tested if smoke now affects the AI? In the past it didn't, but while playing it seems it works (I havent tested propertly)
Title: Re: AI Smoke grenade
Post by: DMarkwick on 28 Jul 2009, 22:23:09
Smoke grenades do now affect AI view. In ArmA it did not.
Title: Re: AI Smoke grenade
Post by: Barbolani on 29 Jul 2009, 12:05:58
Good! Now this game has interest, even though it needs a Ferrari Testarrossa - PC in order to play it propertly with the lowest settings....
Title: Re: AI Smoke grenade
Post by: Planck on 29 Jul 2009, 13:31:05
Oh?? .... I don't even have a dual core processor and the game runs ok for me and my purposes.  :cool2:


Planck