OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started 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..
-
1. Make sure the soldier has a smoke grenade:
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):
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.
-
Hey thanks worldeater for the reply, it works just fine.
-
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)
-
Smoke grenades do now affect AI view. In ArmA it did not.
-
Good! Now this game has interest, even though it needs a Ferrari Testarrossa - PC in order to play it propertly with the lowest settings....
-
Oh?? .... I don't even have a dual core processor and the game runs ok for me and my purposes. :cool2:
Planck