PDA

View Full Version : how to: AI throwing Red Smoke grenades..?



Solex_nl
Jun 12 2009, 09:12
Hello all!

I have a question about how to make the AI throw a smoke grenade.
<Asked it also on the Armaholic forum but they don't know (yet)>
http://www.armaholic.com/forums.php?m=posts&q=6852&n=last#bottom

anyway,
I have a pilot named PilotAI with a red smoke handgrenade and making him walk, on one of his waypoints:

PilotAI fire ["throw","SmokeShellRed","SmokeShellRed"]
That doesnt work.

PilotAI fire "SmokeShellRedMuzzle"
Doesnt work either.


Does anybody know how to get it to work?
Thanks
Alex.

SaOk
Jun 12 2009, 09:17
To throw it: unitname fire ["SmokeShellMuzzle","SmokeShellMuzzle","Smokeshellred"];

Edit: I dont understand why the forum adds a space in SmokeShellred.

Solex_nl
Jun 12 2009, 10:49
It works!
Thank you