Home   Help Search Login Register  

Author Topic: need mortar squad to fire a position when trigger activated  (Read 723 times)

0 Members and 1 Guest are viewing this topic.

Lojik

  • Guest
How do i get a mortar sqaud to fire on a possition when a certain trigger is activated (e.g a radio call), the mortar squad will not be able to see the area so i cant ask them to fire apon an object any suggestions.

bored_onion

  • Guest
Re:need mortar squad to fire a position when trigger activated
« Reply #1 on: 08 Nov 2004, 21:05:25 »
two ways i would suggest

1. make them look like they are firing using an animation and camcreate mortar shells where you want them
2. use an invisible target addon

btw, soldiers dont tend to fire on places they cant see...
« Last Edit: 08 Nov 2004, 21:06:09 by bored_onion »

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:need mortar squad to fire a position when trigger activated
« Reply #2 on: 08 Nov 2004, 21:39:57 »
The answer depends on what you are trying to do:

If you just want the mortar guys to fire in a general direction, but you don't really care if they hit a certain target, then you need to use the "fire" command. That will make them fire in whatever direction they are looking at... so first you need to make them look in the general direction using the dowatch command.

If you want the mortars to actually HIT their target, then things get more complicated. If your mortars are always going to be in the same place, and the same goes for your target, then you COULD just do the above, but keep adjusting where they look until it hits where you want. But this will only work when everything is in the same place, and you don't move anything in the editor after you set it up.

If the mortars or targets might be moved or in a different place, then you are in need of some very complicated scripting. Luckily the brains over at the Chain of Command have made an addon that will do just that. It is called "Unified Artillery", and you can find it here on OFPEC, or on thechainofcommand.net, or on any other addon site.

There is also an old script here that actually makes tanks fire like artillery... I'd really suggest you use UA, but it MIGHT work, so you may want to check it out:

http://ofpec.com/editors/resource_view.php?id=213
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Dubieman

  • Guest
Re:need mortar squad to fire a position when trigger activated
« Reply #3 on: 08 Nov 2004, 23:14:24 »
I'd really just an arty script  and make the ammo a grenade or mortar or shell whatever unless the player is going to see the mortar guys. Seems much simpler than using tanks or dofire commands. COC UA can be a big download for some, might be better to keep it addon free even though UA is a very nice arty addon. :)

Lojik

  • Guest
Re:need mortar squad to fire a position when trigger activated
« Reply #4 on: 09 Nov 2004, 00:05:24 »
i need the mortars to be seen to be firing and they will not be moved, the target will not move either, i have tryed /   "mortar1 dowatch getmarkerpos "defcon1"; mortar1 fire "shell105"    /    defcon1 being marker i want the shells to go but nothing happens.
please help
the code above is placed on a trigger

Lojik

  • Guest
Re:need mortar squad to fire a position when trigger activated
« Reply #5 on: 09 Nov 2004, 20:34:20 »
done i got the mortars to look at a possiotn and fired for effect cheers for the help