Home   Help Search Login Register  

Author Topic: action  (Read 531 times)

0 Members and 2 Guests are viewing this topic.

Piraneous

  • Guest
action
« on: 31 Jan 2004, 04:00:46 »
i want to use teh action command in a script to tell an AT soldier to takemagazine for his launcher from a nearby crate.  i'm using this to do it:


_atguy action ["takemagazine",carlgustavlauncher,1]

this doesn't work however.  i'm guessing most of that command mind you.

is there a way of getting him to take the ammo from the crate without actually having to order him to do it yourself?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:action
« Reply #1 on: 31 Jan 2004, 10:35:09 »
I seem to recall that you have to give him several commands

move to the crate
do the animation
addmagazine

Check the sticky topic on actions at the top of this board - you might find something helpful there.     The syntax you haven't isn't going to work since it doesn't include an ammocrate name or anything like that.
Plenty of reviewed ArmA missions for you to play

Piraneous

  • Guest
Re:action
« Reply #2 on: 31 Jan 2004, 11:24:39 »
just by playing around with it,  and the "the time for action is now" topic,  i managed to come up with this

_atguy action ["take magazine",_ammocrate,0,0,_ammotype];

that seems to work