Home   Help Search Login Register  

Author Topic: Artillery Scripts  (Read 773 times)

0 Members and 1 Guest are viewing this topic.

Offline Vera_Krieg

  • Members
  • *
  • Your a Daisy if ya' do
Artillery Scripts
« on: 25 Nov 2002, 02:01:13 »
I'm wondering if there is any way to use our new M109 in an arty script, especially with that click-on-map feature.

P.S. hopefully something somewhat easy to adjust position, height and so on
« Last Edit: 25 Nov 2002, 02:02:56 by Vera_Krieg »
Trained to Fight, Trained To Kill, Ready to Die, but Never Will.  Marines Make the Blood Flow, Blood Makes the Grass Grow...

otto

  • Guest
Re:Artillery Scripts
« Reply #1 on: 04 Dec 2002, 22:42:45 »
Hey Vera, I'm pretty new to the scripting side of Flashpoint, but I do know how to do the Map-Click Feature:

Put down an empty marker on the map and call it "target". Then, in the script, put:
OnMapSingleClick {}

_pos = _this select 0

"target" setMarkerType "destroy"
"target" setpos _pos

-----------------
then you tell the artillery to target the "TARGET", then tell them to fire on radio command. :gunman:

Crassus

  • Guest
Re:Artillery Scripts
« Reply #2 on: 09 Dec 2002, 06:02:10 »
I think using the map and markers with AI arty is still very much the Holy Grail which a great many scripters are after.

To get AI arty to respond to your call for fire using the map, you need to give them something at which to fire. I'm not up to date on what has been attempted, but what has to be done is create some sort of enemy target (using Oxygen or something) that will be setPos'd where you place your map marker and that your AI arty will target and do the math necessary to bring in that steel rain.

I've messed around with the mortars included in the Seb 'Nam Pack...with my AI mortarman 200 to 300 meters to my rear, and I was up close to the VC--behind concealment of course---and the method of targetting the enemy using the cursor, of course works. But the question remains: how do we get the AI muzzle monkeys to target our user-created "target", which we've placed using the map and markers? :o