OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pliskin on 05 Jun 2003, 16:09:00
-
Hi guys !
also, my problem is this:
I found a way to create Weapons on the ground, or on a table. The soldier should take the weapon. I try to use the action command "Take weapon",
it doesn`t work.
I called the wepon W1 and the soldier s1:
s1 action["Take Weapon",w1]
So, whats the answer ?
-
hmm .... well for a start I suspect its TakeWeapon and not Take Weapon.
Secondly I don't know the syntax: use the forum search function and try the FAQ in case somebody has already discovered it. You may have to experiment to work it out.
It certainly looks wrong, because you have not specified the weaponholder/ammo crate. And I don't know how you have named the weapon, I would have hthought you would have to use it's type. So you could try something like
s1 action ["takeWeapon","m16",crate1]
You'll may have to make the loon go to the crate first. You may also have to add the weapon to the loon with addweapon.
-
deres dat kool thread called The time for "Action" has come! (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9376;start=0)
got most (if not all) da known command in da OFP community
da thing u r searchin 4 is
name : take weapon
Description : makes unit take weapon from dead body
Syntax : object action ["take weapon",Body,0,0,weapon]
Example : LCD action ["take weapon",toadlife,0,0,primaryweapon toadlife]
Example : LCD action ["take weapon",deadman,0,0,"m16"]
Notes: 1) u need 2 make da unit get close 2 da body, or it wil take da weapon from very far distance
2) as much as i know changing da nums in da syntax dont change nythin
@ Maca - it is "Take Weapon"
Maca : 1 - LCD : 2
:P
LCD OUT
-
Thank you.
Thank you
Thank you
Thank you
:P
Greatings: Pliskin
-
how do you create weapons?
-
http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_8
::)
Weapon VehicleCreate
thats the snippet to look at :D