OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Siber Fox on 06 Sep 2002, 02:40:56

Title: To Arms
Post by: Siber Fox on 06 Sep 2002, 02:40:56
Whew.. I got scared for a sec. no one told me the fourms moved! ;D

anyway, on with the questions.

How would one make men arm themselves with weapons from an ammo source?

Title: Re:To Arms
Post by: DeusRich on 06 Sep 2002, 18:43:41
hmmm, i believe, that it is quite simple, in a script, or w/e, you simply put:

Code: [Select]
aP action["STR_ACTION_TAKEWEAPON","M16"]
and he will take an M16 - however I may have the syntax wrong slightly so also try:

Code: [Select]
aP action["M16","STR_ACTION_TAKEWEAPON"]
and there you have it. Simple, fast, fun, and effective ;)
Title: Re:To Arms
Post by: T.S.C.Plage on 06 Sep 2002, 20:16:05
I think the synthax is:

nameofunit action ["Takeweapon",M16]

and

nameofunit action ["Takemagazine",M16]

Greetz
Plage