OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Piraneous 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?
-
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.
-
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