Home   Help Search Login Register  

Author Topic: action command  (Read 1792 times)

0 Members and 1 Guest are viewing this topic.

Offline aetchell

  • Members
  • *
  • I'm a llama!
action command
« 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


Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: action command
« Reply #1 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...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline SaBrE

  • Members
  • *
  • I was once a Llama
    • www.Armed-Assault-Zone.com
Re: action command
« Reply #2 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.
Can you HELP?

Offline Jester_UK

  • Members
  • *
Re: action command
« Reply #3 on: 12 Mar 2007, 19:33:59 »

Offline SaBrE

  • Members
  • *
  • I was once a Llama
    • www.Armed-Assault-Zone.com
Re: action command
« Reply #4 on: 12 Mar 2007, 20:09:16 »
Thank you very much, kind sir. (Sorry, I just watched a clip of Family Guy.)
Can you HELP?

Offline Captain Crunch

  • Members
  • *
Re: action command
« Reply #5 on: 06 Apr 2007, 13:46:56 »


I would love to have that WeaponOnBack action to work. Has anyone found anything that works?
Back to the forest!

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: action command
« Reply #6 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.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...