Home   Help Search Login Register  

Author Topic: Time activated airstrike script.  (Read 820 times)

0 Members and 2 Guests are viewing this topic.

Baphomet

  • Guest
Time activated airstrike script.
« on: 22 Feb 2003, 01:11:32 »
I'm seeing most of the airstrike scripts in this place are activated by radio or the wonderful onmapclick Airstrike. However right now I'm in need of an airstrike that is purely cinematic. Basically I'd like to call it from a trigger that runs on a timer. Flies a plane over a predefined area and blows something up. Any info?


Hm. I was thinking perhaps I could modify the mapclick airstrike so that it works simply on three unmovable markers... One for spawn, one for the target and one for the exit and deletevehicle point.
« Last Edit: 22 Feb 2003, 01:25:45 by Baphomet »

Baphomet

  • Guest
Re:Time activated airstrike script.
« Reply #1 on: 22 Feb 2003, 01:58:32 »
Haha! I did it myself.  ;D I modified Skumball's airstrike script to run automatically... I'll post results here after I'm finished testing.  I'm starting to take care of problems myself. This is good news.


Mostly pretty simple stuff.

I modified the trigger that activates the script to say this:
[] exec "airstrike.sqs"

In the script itself I commented out this: ;"target" setMarkerPos _pos

I suspected that it was mapclick related. No malfunctions thus far.  :D

Instead of: strikePilot doMove _pos

I put: strikePilot doMove (getMarkerPos "target")

That's pretty much it. I think. Easier than I thought.

Then I just set it to a trigger that runs on a timer. When the timer runs out. Airstrike time.
 
« Last Edit: 22 Feb 2003, 02:45:27 by Baphomet »

Baphomet

  • Guest
Re:Time activated airstrike script.
« Reply #2 on: 22 Feb 2003, 03:55:55 »
This turned out not to be terribly advanced after all... o.o