Home   Help Search Login Register  

Author Topic: AI thrown grenades and smoke? (another basic question)  (Read 517 times)

0 Members and 1 Guest are viewing this topic.

Offline AirCav

  • Members
  • *
  • I'm a llama!
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

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:AI thrown grenades and smoke? (another basic question)
« Reply #1 on: 12 Jan 2005, 07:23:04 »
Try:

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

;)

ThEoNeAnDoNlY

  • Guest
Re:AI thrown grenades and smoke? (another basic question)
« Reply #2 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

StonedSoldier

  • Guest
Re:AI thrown grenades and smoke? (another basic question)
« Reply #3 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"]
« Last Edit: 12 Jan 2005, 13:47:12 by StonedSoldier »

Offline AirCav

  • Members
  • *
  • I'm a llama!
Re:AI thrown grenades and smoke? (another basic question)
« Reply #4 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"?

Dubieman

  • Guest
Re:AI thrown grenades and smoke? (another basic question)
« Reply #5 on: 13 Jan 2005, 02:33:34 »
I think grenades are considered magazines. If not do a quickie test with addmag and addweapon. ::)

Offline AirCav

  • Members
  • *
  • I'm a llama!
Re:AI thrown grenades and smoke? (another basic question)
« Reply #6 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.


Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:AI thrown grenades and smoke? (another basic question)
« Reply #7 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 ;)