OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: AirCav on 12 Jan 2005, 05:09:24

Title: AI thrown grenades and smoke? (another basic question)
Post 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
Title: Re:AI thrown grenades and smoke? (another basic question)
Post by: Sui on 12 Jan 2005, 07:23:04
Try:

unit fire ["throw","SmokeShell","SmokeShell"]

;)
Title: Re:AI thrown grenades and smoke? (another basic question)
Post by: ThEoNeAnDoNlY on 12 Jan 2005, 13:07:20
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
Title: Re:AI thrown grenades and smoke? (another basic question)
Post by: StonedSoldier on 12 Jan 2005, 13:44:27
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"]
Title: Re:AI thrown grenades and smoke? (another basic question)
Post by: AirCav on 13 Jan 2005, 02:27:13
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"?
Title: Re:AI thrown grenades and smoke? (another basic question)
Post by: Dubieman on 13 Jan 2005, 02:33:34
I think grenades are considered magazines. If not do a quickie test with addmag and addweapon. ::)
Title: Re:AI thrown grenades and smoke? (another basic question)
Post by: AirCav on 13 Jan 2005, 02:42:57
Grenades fall under the magazine catagory.  Seems you have to remove all of them before the smokeshells will register.

Title: Re:AI thrown grenades and smoke? (another basic question)
Post by: Sui on 13 Jan 2005, 03:05:12
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 ;)