Home   Help Search Login Register  

Author Topic: Making starting stance crouch  (Read 5819 times)

0 Members and 1 Guest are viewing this topic.

Offline punisher

  • Members
  • *
Making starting stance crouch
« on: 30 Aug 2011, 16:04:31 »
Im looking to make ai units start (and stay) in the crouch position in a mission.
I know for ofp it was somthing like: this setbehaviour "combat";this switchmove "combattocrouch"
 however this does not work for arma2
The Gimp clan- pushing the limits of OFP
http://www.youtube.com/user/Pigdogmeat

Offline Zipper5

  • BIS Team
  • ****
Re: Making starting stance crouch
« Reply #1 on: 30 Aug 2011, 16:12:41 »
Code: [Select]
this setUnitPos "MIDDLE"If you want them to start crouched and stay crouched, use:
Code: [Select]
this setUnitPos "MIDDLE"; this switchMove "AmovPknlMstpSrasWrflDnon"Hope that helps!

Offline Ext3rmin4tor

  • Members
  • *
Re: Making starting stance crouch
« Reply #2 on: 30 Aug 2011, 16:13:05 »
setUnitPos "Middle"

this command forces the unit to assume the middle (kneeled) position. To reset the automatic behaviour use

setUnitPos "AUTO"
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!

Offline Kommiekat

  • Members
  • *
Re: Making starting stance crouch
« Reply #3 on: 31 Aug 2011, 19:17:12 »
Greetings,

Where does this go exactly? The units Init box?
setUnitPos "Middle"

And this one?
setUnitPos "AUTO"

Offline Ext3rmin4tor

  • Members
  • *
Re: Making starting stance crouch
« Reply #4 on: 05 Sep 2011, 12:10:14 »
If you want the unit to have this stance from the beginning of the mission then it goes in the unit init field, otherwise you have to create a trigger with a certain condition.

The complete syntax is

this setUnitpos "MIDDLE"

Another suggestion: I understand that you are new to the editing, then I suggest you that, instead of asking "How do I do this or that?" every time you need to do something, you read first some editing guides (there is Mr. Murray editing guide which is very good) and learn something about scripting, otherwise you won't learn anything, and every time you need to do even the easiset thing, you will always have to ask here.
I don't mean to be rude, it's just a suggestion.
« Last Edit: 05 Sep 2011, 12:13:05 by Ext3rmin4tor »
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!

Offline Kommiekat

  • Members
  • *
Re: Making starting stance crouch
« Reply #5 on: 05 Sep 2011, 15:11:59 »
Your suggestion is duly noted and has been implemented on a number of occasions.

Please understand that not all possibilities that can be performed in the editor are located in the tutorials, though some are better than others.

As a matter of fact, seems the BIS developers themselves come here to learn a few tricks with the large population of scripting/programming Arma fans.

Thanks :)