OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: D-Tie on 20 Apr 2003, 18:19:28
-
Hi
I've got a little easy question.
I really surfed the web for 2 hours and didnt find an answer.
Here it is:
How can I get a unit just to fire its weapon instantly, e.g. by a radio command or using a trigger that is activated by radio.
The scenario is:
I'm trying to build a simple arty mission and I'm using the SwissMod M109 Kawest Artillery gun. I'm group leader of some M109s and then I give a target to one of the M109s by using the target radio command. The target (an enemy BMP, that is manned and active) is pretty far away (2km) and behind a hill (that target was first spottet by another unit). The M109 aims the target correctly (the gun is pointing up in the air), but when I give the 3-3 Fire command, nothing happens because the target is not in a direct line of sight (the hill!).
So, how can I get that M109 to fire it's gun. Is there any command or script out there, that can help me make that gun fire on command, even if there is no direct line of sight?
Bye the way: I don't have that problem when I'm the commander of the M109. But I don't wanna be the commander of the M109.
Please Help me!
yours sincerely
D-Tie
PS: You don't have to tell me to use any of the artillery scripts, I know them and they are great. But I just wan't that M109 to fire it's gun on a radio command.
-
You don't want to know. Trust me, you don't. Not after two hours searching.
OK, are you ready for this? Look in the Command Reference. There are two fire commands. Sounds like either would do you here. Sorry.
If you want to hit the target, that's more complicated and you may have to fake it. But if the barrel is already lined up maybe you won't have to.
-
I knew this was coming....
I know the fire commands, and I tried them, but they don't work with this addon, tried a thousand times in a thousand different ways...
thanks anyway for your reply. Guess I should have written that I know these commands.
But hey, maybe somebody knows the corrects parameters for these fire commands?
-
:-[The main problem is that it is a mod, not official. The author most likely intended ;D the M109 to be used by a player, not AI. If I were to go further, in reasons ??? this reply would turn into a 3-page essey on all sorts of technical details.
-
Yes,
I figured out, too. That the AI cannot actually hit the target.
Well, whatever...
BW-MOD is going to release their PZH2000 soon, it's got an integrated coordinate system! Yeaah!
[TOPIC CLOSED]