Home   Help Search Login Register  

Author Topic: ai throw smoke greanade ?  (Read 1750 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkattack

  • Former Staff
  • ****
ai throw smoke greanade ?
« on: 08 Mar 2007, 18:21:59 »
is it possible to make a unit throw a smokeshell

ive tried using
unit ["throw","SmokeShell","SmokeShell"]
but no joy ... any help appreciated     ???
"HOLY SARDINE" - see Shark-Attack meet his match

Offline Blanco

  • Former Staff
  • ****
Re: ai throw smoke greanade ?
« Reply #1 on: 08 Mar 2007, 21:06:04 »
I have no answer for to question but I think that the "put" command doesn't exist anymore.
When you check the Arma weapons table the "throw" & "put" command is still there, but in the first sniper campaign mission the AI places a satchel on the road with this codeline :
Quote
sappername fire "PipeBombMuzzle";

Maybe the "throw" command doesn't exist, maybe you have to use "fire" instead.
Like I said, just a wild guess  :confused:

edit :

Lol, indeed. I was right.  8)
Quote
unitname fire "SmokeshellMuzzle"

Does the trick :)

The "throw" & "put" stuff is probably only for "fired" eventhandles., otherwise the info on the wiki is wrong.

http://community.bistudio.com/wiki/ArmA:_Weapons


« Last Edit: 09 Mar 2007, 05:26:50 by Blanco »
Search or search or search before you ask.

Offline sharkattack

  • Former Staff
  • ****
Re: ai throw smoke greanade ?
« Reply #2 on: 08 Mar 2007, 21:23:37 »
thanx a million blanco ... nice one mate .. had me beat ... id tried them all ...  :good:
"HOLY SARDINE" - see Shark-Attack meet his match

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: ai throw smoke greanade ?
« Reply #3 on: 08 Mar 2007, 21:38:31 »
Quote
The "throw" & "put" stuff is probably only for "fired" eventhandles., otherwise the info on the wiki is wrong.

The "Throw" and "Put" weapons are indeed configured under cfgWeapons in ArmA, the same as OFP.

So, the Wiki is indeed correct to list them under weapons.

In OFP the line:

unitname fire ["put","pipebomb"]

was valid.

But in ArmA I thinkj:

unitname Fire ["pipebombmuzzle", "pipebombmuzzle", "pipebomb"]
(muzzle, mode, magazine)

will do it the job


Planck
I know a little about a lot, and a lot about a little.