OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: sharkattack 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   ???
-
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 :
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)
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
-
thanx a million blanco ... nice one mate .. had me beat ... id tried them all ... :good:
-
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