Home   Help Search Login Register  

Author Topic: Rifle Grenade (AKA "Mortar")  (Read 598 times)

0 Members and 1 Guest are viewing this topic.

Jakerod

  • Guest
Rifle Grenade (AKA "Mortar")
« on: 17 Nov 2002, 04:15:33 »
How can I get a "mortar soldier" to fire a rifle grenade ("Mortar") at a specific target or just get him to use it on their own?

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Rifle Grenade (AKA "Mortar")
« Reply #1 on: 17 Nov 2002, 10:01:16 »
try this

unitname dotarget targetname
unitname fire ["M16","mortar","mortar"]

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Rifle Grenade (AKA "Mortar")
« Reply #2 on: 17 Nov 2002, 16:17:00 »
Black_feather there goes for the traditional approach...alas, it doesn't actually work ;) Unless you: a) do a reveal command first, and b) place the mortar dude roughly 420m from the intended target.

Yup, I've tried to get a mortar dude kill something too with that thing, alas, it would seem they don't have an in-built AI for actually shooting at something with the damned thing.  :P

Sefe had a script which worked well enough simulating the impact, basically grabbed the mortar mid-air and slammed it into the target. Not too good on speed/distance/angle calculations (i.e how long it'd REALLY take the projectile to get there), but it worked...don't have it with me right now though.

Maybe later. Hm. Still, it's not something easily done, and unless it's a vital in-game function (like having people in your squad fire mortars at the enemy), I suggest you just simulate it (instead of actually bombing the village, just say you're going to bomb it and camCreate the mortars...).

Hm. Maybe someone else has some input?  :-\

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Wolf

  • Guest
Re:Rifle Grenade (AKA "Mortar")
« Reply #3 on: 17 Nov 2002, 16:51:57 »
To camcreate the mortar, is the name of it just Mortar?
as in
Bomb="Mortar" camcreate(getpos this)

Jakerod

  • Guest
Re:Rifle Grenade (AKA "Mortar")
« Reply #4 on: 18 Nov 2002, 02:12:09 »
k thanks guys