OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: 456820 on 07 Oct 2007, 18:15:31

Title: Player sit down
Post by: 456820 on 07 Oct 2007, 18:15:31
Hmm well Im kind of stumped with this, I have searched the forums but found no answer.

All I want to do is to have the player sit down, but ArmA just ignores what I tell it to. I have tried switch and playmove with several different sit down animations but none of them work on the player or even AI for that matter.

Am I using the wrong anim, or am I dont something else totally wrong?

this playmove "AmovPercMstpSlowWrflDnon_AmovPsitMstpSlowWrflDnon"

Is what im using in the players init field but he is always standing up when the mission starts.
Any ideas? cheers
Title: Re: Player sit down
Post by: hoz on 07 Oct 2007, 19:29:12
From the Biki...

Quote
3.36 SITDOWN

unitOne action ["SITDOWN", unitTwo]

Soldier 'unitTwo' sits down.
Sitting position will only be held if unitTwo is in SAFE and CARELESS mode.

Example: SoldierOne action ["SITDOWN", SoldierOne]

Biki Actions[url]

hope it helps. (http://community.bistudio.com/wiki/ArmA:_Actions#SITDOWN)
Title: Re: Player sit down
Post by: 456820 on 07 Oct 2007, 19:56:22
Yep thats working perfectly, however I do have a second small problem.

I am trying to make it so when the mission starts teh screen is black, I've tried the fade in/out trick from OFP but this isnt working in ArmA so I always get that split second before the screen is black.
Title: Re: Player sit down
Post by: LCD on 07 Oct 2007, 21:55:48
in da init.sqs put a

cutText ["","BLACK FADED"]

LCD OUT
Title: Re: Player sit down
Post by: Meatball0311 on 08 Oct 2007, 17:33:15
Can you make units lay down?  If so, what is the correct command?
Title: Re: Player sit down
Post by: nettrucker on 10 Oct 2007, 18:41:16
Hello Metball
Try in units init field - this setUnitPos "Down" -
Trigger activation field - unitname setUnitPos "Down"
That should work.
Regards
nettrucker :D
Title: Re: Player sit down
Post by: Meatball0311 on 18 Oct 2007, 05:15:08
thanks nettrucker it works perfectly. 
next question,

I have some african militia on roof tops,  I know I say this setUnitPos "MIDDLE" to have them in the crouch position.  But when they take fire they go prone and then run off of building.

Is there a way for me to permanently keep them in that position even when they take fire?
Title: Re: Player sit down
Post by: LCD on 18 Oct 2007, 12:21:03
try playing with the disableAI (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=d#disableAI) commands....

da right combination cud make em stil shot but wont move :D

LCD OUT
Title: Re: Player sit down
Post by: Meatball0311 on 18 Oct 2007, 16:10:18
tanks!!