OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: aetchell on 12 Mar 2007, 17:32:40

Title: action command
Post by: aetchell on 12 Mar 2007, 17:32:40
Has anyone had any luck getting the action command to successfully work? Ive tried it on: SIT, SITDOWN and WEAPONONBACK and no joy.

Ive tried the following

unitname action ["SIT",unitname];
this action ["SIT",this];
this action ["SIT"];
unitname action ["SIT"];
unitname action "SIT;

I either get debug errors or nothing happens

All commands have been tried  in the unit init field, and ive even tried activating them when a waypoint is reached, but no joy.

can anyone help, pleeeeaaaseee!

regards
Ash

Title: Re: action command
Post by: h- on 12 Mar 2007, 18:23:27
The sit action works only when the unit is either in 'Safe' or in 'Careless' behaviour.

How I tested this was I put
Code: [Select]
this setBehaviour "safe"in the unit's init field and then
Code: [Select]
unitname action ["SITDOWN",unitname]in a radio trigger and worked fine, the guy sat down (once I activated the trigger)..

Didn't get the weapononback to work though, it requires two parameters, it seems the example in the wiki is faulty..  :dunno:
As the second parameter I tried the unit's name, and then the weapon it was holding but no go...
Title: Re: action command
Post by: SaBrE on 12 Mar 2007, 19:16:29
Is there a comprehensive list of all the action commands available in ArmA? I had a quick look in the resources but couldn't find it.
Title: Re: action command
Post by: Jester_UK on 12 Mar 2007, 19:33:59
http://community.bistudio.com/wiki/ArmA:_Actions (http://community.bistudio.com/wiki/ArmA:_Actions)

There you go Sabre.
Title: Re: action command
Post by: SaBrE on 12 Mar 2007, 20:09:16
Thank you very much, kind sir. (Sorry, I just watched a clip of Family Guy.)
Title: Re: action command
Post by: Captain Crunch on 06 Apr 2007, 13:46:56


I would love to have that WeaponOnBack action to work. Has anyone found anything that works?
Title: Re: action command
Post by: johnnyboy on 07 Apr 2007, 01:53:35
For Weapon On Back, this works:

dude setbehaviour "SAFE";
dude playmove "AidlPercMstpSnonWnonDnon04";

Unit must be in SAFE or CARELESS behavior in order for unit to keep the weapon on his back.  Otherwise the playmove will be temporary:  Unit puts weapon on back, then takes it back to hand right away.