Jump to content
Sign in to follow this  
Kotp

Mission Assistance Required

Recommended Posts

Hi guys , has been a while since i made any missions , but had to give the new Armed Assault a bash.

Trying to keep the AI Enemy Units from hitting the Deck when they see the opposing force.

Any ideas what i need to stick in the INIT Line of each soldier or if theres a script available to keep the units either standing up or in the crouch position.

Thanx in advance guys !

Share this post


Link to post
Share on other sites

setunitpos "up"

You can set it to up, down, or auto.  

You can just put setunitpos "up" in the unit's init field, or you can do it from other sources by unit_name setunitpos "value", so you can change it as the mission goes on.

Not sure how to keep them crouched.

Share this post


Link to post
Share on other sites

Disregard my last... apprently setunitpos isn't working right in ArmA, they go back to Auto by themselves.

Not sure how to fix it.

Share this post


Link to post
Share on other sites

Cheers anyway Bishop mate , that was the first thing i tried as it worked lovely in OFP.

Apparently ive found out that you can keep the Units Standing up by giving them a Radio Command but bit unsure how to do this.

Anyone know of a way to do this ?

Thanx guys.

Share this post


Link to post
Share on other sites

Maybe try to make a script telling them to stand up with setunitpos once per second ? Kinda forcefull aproach, but might work wink_o.gif

Share this post


Link to post
Share on other sites

Place this in an AI unit's init field:

this setBehaviour "COMBAT"; this setUnitPos "UP"

This works for single units.

The unit must be placed in combat mode before setunitpos works in ArmA (at least for the german 1.02 version)

You can now order the units to stand up / lie down from scripts and triggers.

Cheers.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×