OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wildebeest on 04 May 2003, 12:30:07
-
Hey, was just wondering whether there is a way of having an AI soldier use automatic fire, with say the AK47, instead of just single shots all the time?
Thx, yer the best :)
-
8) Try this, sunnyboy:
UnitName fire ["ak74","FULLauto","ak74"]
so that's WEAPON;MODE;MAGAZINE :thumbsup: But ya might need to loop the spell in a script,
as the AI morons tend to fire just a single shot & then stop! ::) ;D
-
Cool, thx mate. ;D
The thingie worked fine with a loop, except for one small detail. The AI guy only fires in the air! :o
Say, where did you find out about "fullAuto"? I can't find it in any comref I've used.
-
its part of the fire command, if you look in the unofficial command referance in Appendix B : Weapons and Ammo Object Tree, you'll see the options for each weapon like burst and single.
-
cool, I'll do that, thx man :)
So, does anyone know how to prevent the guy from just firing in the air and instead target an enemy?