OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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
-
The sit action works only when the unit is either in 'Safe' or in 'Careless' behaviour.
How I tested this was I put
this setBehaviour "safe"in the unit's init field and then
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...
-
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.
-
http://community.bistudio.com/wiki/ArmA:_Actions (http://community.bistudio.com/wiki/ArmA:_Actions)
There you go Sabre.
-
Thank you very much, kind sir. (Sorry, I just watched a clip of Family Guy.)
-
I would love to have that WeaponOnBack action to work. Has anyone found anything that works?
-
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.