OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wildebeest on 04 May 2003, 12:30:07

Title: Auto fire?
Post 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  :)
Title: Re:Auto fire?
Post by: Tomb on 04 May 2003, 13:46:40

 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


Title: Re:Auto fire?
Post by: Wildebeest on 04 May 2003, 14:37:46
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.
Title: Re:Auto fire?
Post by: Black_Feather on 04 May 2003, 15:04:03
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.
Title: Re:Auto fire?
Post by: Wildebeest on 04 May 2003, 15:11:17
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?