Home   Help Search Login Register  

Author Topic: Aerial convoy security script....  (Read 534 times)

0 Members and 1 Guest are viewing this topic.

Offline AirCav

  • Members
  • *
  • I'm a llama!
Aerial convoy security script....
« on: 08 Jan 2005, 01:53:37 »
Is there a script out there that will make helicopters fly an orbit around a moving convoy and provide security ahead, to the flanks of, and behind the column?  

Dane

  • Guest
Re:Aerial convoy security script....
« Reply #1 on: 08 Jan 2005, 02:51:09 »
I don't think so, but there are some follow scripts in the editors depot so you can have the chopper follow your convoy.

Offline AirCav

  • Members
  • *
  • I'm a llama!
Re:Aerial convoy security script....
« Reply #2 on: 08 Jan 2005, 02:57:22 »
Yeah, tried that.  The aircraft lags 50m behind the vehicle.  Not too exciting.  Ok, how about this.  Is there a way to give an aircraft a seek and destroy command, then interupt it after a set time (say 5 seconds) to execute a getpos command then loop it?

-Air

Dane

  • Guest
Re:Aerial convoy security script....
« Reply #3 on: 08 Jan 2005, 03:31:20 »
Maybe this will work, give the chopper a search and destroy waypoint with a radius of 100 and make a loop script that setPos the waypoint on off the vehicles in the column.
[chopperGroup, 1] setWPPos getPos truck.
« Last Edit: 08 Jan 2005, 03:33:29 by Dane »

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Aerial convoy security script....
« Reply #4 on: 08 Jan 2005, 04:08:21 »
You could just do a domove script, example:

_chopper= _this select 0
_convoy = _this select 1

#loop
?(not alive _convoy):exit
_x = getpos _area select 0
_y = getpos _area select 1

_chopper domove [_x-random 25 ,_y-random 25]
~10
goto"loop"

That would be one way.
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline AirCav

  • Members
  • *
  • I'm a llama!
Re:Aerial convoy security script....
« Reply #5 on: 08 Jan 2005, 04:24:28 »
Ok, digging further.  How about this: The helicopter detects the direction that the convoy is facing (and moving) and executes a domove a minumum distance ahead of the convoy before executing a getpos followed by another detect direction.  This time moving in the opposite direction of the convoy a minumum distance before looping.  Scriptable?

I realise i'm filling this forum with total newb questions, but I can't find the answers elsewhere.  Just tell me if it's possible.  I'll figure out the details.

-Air

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Aerial convoy security script....
« Reply #6 on: 08 Jan 2005, 13:55:01 »
Yes, that's perfectly possible.

Use getDir to find the direction of a unit in the convoy.   Maybe use a leader command rather than a specific unit in case that unit is dead.    

You'll need some trigonometry to figure out the doMove point ahead of the convoy.    There are trig guides in the Ed Depot.

Remember that choppers aren't that good at detecting infantry.
Plenty of reviewed ArmA missions for you to play