OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Makabi on 27 Mar 2003, 06:31:10
-
I need the answers to some simple questions I can't find in the FAQ:
how do I add weapons\items\ammo to a unit?
how do I make a unit holster it's weapon?
how do I make a unit sit down?
how do I make a unit salute?
how do I make a unit do pushups?
how do I make a unit do a talking action?
how do I delay commands?
Any answers to any of the questions is appreciated.
-
Hey Makabi!
#1. For a soldier:
this addmagazine magazinename; this addweapon weaponname; this addmagazine magazinename
The order is important because this order makes the weapon start loaded and ready to solve any problem in the form of a 5-7 foot flesh mass. (human) ::)
For binocs and nv goggles its always:
this addweapon itemname
#2-6
Explore the wonders of the ofpec world and check out the editors depot.. It's up there ^^.. ;) Check out the command section and find the switchmove section..
The switchmove command will achieve most of these things.. Also try a search on these specific questions in the forum, because I know I've seen them answered before and recently. ;) (If you still can't find somethin let me know)
#7.
It all depends on what you're talking about.. If it's a command activated by a trigger, you add time to the triggers countdown, if it's a command in a script you use ~ and then the number of seconds... ;)
Hope that helps! Have fun editing! ;)
Asmo
P.S. Before adding weapons and ammo, you will probably want to clear their weapons... If so, use:
removeallweapons this
in the unit's on activation field.
-
Makabi, well done for seaching the FAQ. Head over to the Ed Depot - Tutorials and look at
References - Unofficial command ref guide
Abuu's basic editing tute (can't remember exactly where it is)
Both of these will help you.
Delaying commands is easy. In a a script
~2
will make the script wait two seconds. In a trigger or waypoint use the countdown/timeout fields. I wrote a post on them a couple of weeks ago, search the forum if you need help with those.
Come back and ask if you get stuck. ;)