Home   Help Search Login Register  

Author Topic: AI Smoke grenade  (Read 3656 times)

0 Members and 1 Guest are viewing this topic.

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
AI Smoke grenade
« 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..
Who's hyped for Arma4, long live Arma!

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: AI Smoke grenade
« Reply #1 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.
« Last Edit: 27 Jul 2009, 22:52:56 by Worldeater »
try { return true; } finally { return false; }

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Re: AI Smoke grenade
« Reply #2 on: 28 Jul 2009, 05:34:13 »
Hey thanks worldeater for the reply, it works just fine.
Who's hyped for Arma4, long live Arma!

Offline Barbolani

  • Members
  • *
Re: AI Smoke grenade
« Reply #3 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)

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Re: AI Smoke grenade
« Reply #4 on: 28 Jul 2009, 22:23:09 »
Smoke grenades do now affect AI view. In ArmA it did not.

Offline Barbolani

  • Members
  • *
Re: AI Smoke grenade
« Reply #5 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....

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: AI Smoke grenade
« Reply #6 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
I know a little about a lot, and a lot about a little.