OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: LordTedrick on 02 Jun 2007, 18:16:02

Title: AT hold weapon
Post by: LordTedrick on 02 Jun 2007, 18:16:02
How do I get an AI AT to just hold the laucher and not switch back to his rifle. I have tried selectweapon which just seems to last for about two seconds  >:(
Title: Re: AT hold weapon
Post by: Blanco on 02 Jun 2007, 19:07:58
Is this for a cutscene?

Very ugly script but it works:
Quote
#loop
?!alive unitname: exit
unitname switchmove "amovpknlmstpsraswlnrdnon"
~0.01
goto "loop"