OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: angusjm on 02 Apr 2003, 20:00:19
-
Does anyone have a list of all of the possible actions that you can use with the action command.
I wish to make a fairly complex script, involving many AI units moving to ammocrates, taking weapons and then getting into their appropriate vehicles.
Any help would be appreciated. ;D
-
Here are list of the actions that you can have a unit perform using the action command.
STR_NO_ACTION
No action available
STR_ACTION_GETIN_COMMANDER
Get in %s as commander
STR_ACTION_GETIN_DRIVER
Get in %s as driver
STR_ACTION_GETIN_PILOT
Get in %s as pilot
STR_ACTION_GETIN_GUNNER
Get in %s as gunner
STR_ACTION_GETIN_CARGO
Get in %s ride in back
STR_ACTION_HEAL
Heal at %s
STR_ACTION_REPAIR
Repair at %s
STR_ACTION_REFUEL
Refuel at %s
STR_ACTION_REARM
Rearm at %s
STR_ACTION_GETOUT
Get out
STR_ACTION_LIGHTON
Light on
STR_ACTION_LIGHTOFF
Light off
STR_ACTION_ENGINEON
Engine on
STR_ACTION_ENGINEOFF
Engine off
STR_ACTION_WEAPON
Weapon %s
STR_ACTION_MAGAZINE
Reload %s
STR_ACTION_TAKEWEAPON
Take %s
STR_ACTION_DROPTAKEWEAPON
Take %s (drop %s)
STR_ACTION_TAKEMAGAZINE
Take %s
STR_ACTION_DROPTAKEMAGAZINE
Take %s (drop %s)
STR_ACTION_TAKEFLAG
Take Flag
STR_ACTION_RETURNFLAG
Return Flag
STR_ACTION_TURNIN
Turn in
STR_ACTION_TURNOUT
Turn out
STR_ACTION_WEAPONINHAND
%s in hand
STR_ACTION_WEAPONONBACK
%s on back
STR_ACTION_SITDOWN
Sit down
STR_ACTION_EJECT
Eject
STR_ACTION_LAND
Landing autopilot
STR_ACTION_CANCEL_LAND
Landing autopilot off
STR_ACTION_TO_DRIVER
To driver's seat
STR_ACTION_TO_PILOT
To pilot's seat
STR_ACTION_TO_GUNNER
To gunner's seat
STR_ACTION_TO_COMMANDER
To commander's seat
STR_ACTION_TO_CARGO
To back seat
STR_ACTION_HIDE_BODY
Hide body
STR_ACTION_TOUCH_OFF
Touch Off %d bomb(s)
STR_ACTION_START_TIMER
Set timer on (%.0f seconds)
STR_ACTION_SET_TIMER
Set timer +%.0f sec. (%.0f remaining)
STR_ACTION_DEACTIVATE
Deactivate bomb
STR_ACTION_TAKEOFF_GOGGLES
Take off NV goggles
STR_ACTION_TAKEON_GOGGLES
Take on NV goggles
STR_ACTION_MANUAL_FIRE
Manual fire
STR_ACTION_MANUAL_FIRE_CANCEL
Cancel manual fire
STR_ACTION_HOVER
Auto-hover
STR_ACTION_HOVER_CANCEL
Cancel Auto-hover
STR_ACTION_STROKEFIST
Strike with fist
STR_ACTION_STROKEGUN
Strike with gun
-
how cld you make an action that isnt on that list...like having an action where you cld kill smeone using the unitname setdammage 1 command but so its under the action menu!
wld it be smething like..
str_action_unitname setdammage 1
?
-
Look in the official command reference for the "addaction" command. You can use that to execute a script to do anything you want.
Hope this helps.
-
it only tells u for scripts, im also looking for a none script one, so u can have it in a trigger or smething!
-
Pretty much anything you can put in a script, you can put in a trigger. You can certainly use actions in the On Activation field of triggers.
What you are talking about involves the addaction command ... look it up in the command ref.
-
Before you go pulling your hair out trying to get these to work, please realize that nonone has ever been able to figure out how to get some them to work...like the action that supposedly reloads a weapon. The reload action simply does not work, or has some kind of crazy syntax that nobody has found out yet.
Good luck.
-
So... what would be the syntax to order someone to getin a chopper as the pilot?
-
try
unitname assignasdriver vehiclename
unitname ordergetin true
-
Thanks, I was trying to use the action command for this.
I was also trying to use the action command to get a unit to pickup weapons from ammocrates...
Would I use the action command for this, or is there something else?
-
wldnt the only use of the getin chopper and pick up ammo from crate action only be useful for the AI, as it is automattic for the player. So things smething like an action that wld let you, say...create a unit, like i said in a previous post. Or wld you have to do it via a script?