Home   Help Search Login Register  

Author Topic: Action Commands  (Read 1074 times)

0 Members and 1 Guest are viewing this topic.

Pliskin

  • Guest
Action Commands
« 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 ?
« Last Edit: 05 Jun 2003, 16:09:45 by Pliskin »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re: Action Commands
« Reply #1 on: 05 Jun 2003, 17:10:49 »
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.


Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Action Commands
« Reply #2 on: 05 Jun 2003, 18:18:56 »
deres dat kool thread called The time for "Action" has come!

got most (if not all) da known command in da OFP community

da thing u r searchin 4 is

Quote
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
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Pliskin

  • Guest
Re: Action Commands
« Reply #3 on: 05 Jun 2003, 19:18:39 »
Thank you.
Thank you
Thank you
Thank you
 :P
Greatings:  Pliskin

KyleSarnik

  • Guest
Re: Action Commands
« Reply #4 on: 18 Jun 2003, 05:09:57 »
how do you create weapons?

mcnils

  • Guest
Re: Action Commands
« Reply #5 on: 24 Jun 2003, 00:57:09 »
http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_8

 ::)

Weapon VehicleCreate
thats the snippet to look at :D