OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: AirCav on 12 Jan 2005, 05:09:24
-
Hi,
I've tried all the published lines I can find for throwing smoke, nothing seems to work. DUDE fire "Smokeshell" in a waypoint On Activation field has no effect. What is the proper line?
BTW- I use OFP 1.46.
-Air
-
Try:
unit fire ["throw","SmokeShell","SmokeShell"]
;)
-
yea actually i have a problem in the editor where if i use this command:
removeallweapons this; this addweapon "smokeshellred"
then i dont have any ammo for the smokeshells, it says "Smokeshellred" in the top left, but it is in red and i have 0 ammo for it.
this is annoying!!!!!
Guy
-
the problem is you havent got any ammo for your smokeshell
try
removeallweapons this; this addmagazine "smokeshellred"; this addweapon "smokeshellred"
then try
man fire ["Throw","SmokeShellRed"]
-
Stoned-
Now i'm confused. If I need a 'loon' to drop a grenade to pick up a smoke shell. I have to say this removemagazine "HandGrenade"; this addmagazine "smokeshell" or this removeweapon "HandGrenade"; this addweapon "smokeshell"?
-
I think grenades are considered magazines. If not do a quickie test with addmag and addweapon. ::)
-
Grenades fall under the magazine catagory. Seems you have to remove all of them before the smokeshells will register.
-
mm... not quite.
"SmokeShellRed" is not a weapon... the weapon that's used when you use it is the "Throw" weapon.
Bottom line, don't try to add it was a weapon. Just add it as a magazine and you should be fine ;)