PDA

View Full Version : Mission Assistance Required



Kotp
Dec 5 2006, 19:00
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 !

b1sh0p
Dec 6 2006, 01:24
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.

b1sh0p
Dec 6 2006, 01:34
Disregard my last... apprently setunitpos isn't working right in ArmA, they go back to Auto by themselves.

Not sure how to fix it.

Kotp
Dec 6 2006, 13:28
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.

SeXyWombat
Jan 7 2007, 13:04
Maybe try to make a script telling them to stand up with setunitpos once per second ? Kinda forcefull aproach, but might work http://forums.bistudio.com/oldsmileys/wink_o.gif

Knigget
Jan 24 2007, 23:14
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.