Home   Help Search Login Register  

Author Topic: Dedicated Server chopper script for all (REJECTED)  (Read 2022 times)

0 Members and 1 Guest are viewing this topic.

Offline BuhBye

  • Members
  • *
  • I'm a llama!
Dedicated Server chopper script for all (REJECTED)
« on: 05 Jun 2007, 01:17:13 »
After my own hellish nightmare tring to get a chopper to Fly "Live" troops to an LZ, Unload them and leave "On a Deticated Server" Here it is.

Name it anything you want.sqs and launch it any way you want.

Code: [Select]
;Script By BuhBye
helo1 flyinheight 30
helo1 setvelocity [0,50,0]
helo1 setbehaviour "stealth"
helo1 domove getpos start1
helo1 setspeedmode "NORMAL"
#loop
?helo1 distance start1 < 300 : goto "land"
~0.5
goto "loop"

#land
helo1 setspeedmode "NORMAL"
helo1 land "GET OUT"
_height = getpos helo1 select 2
?_height < 1 : goto "drop"
~0.5
goto "land"

#drop
helo1 flyinheight 0
@({_x in helo1} count [w1,w2,w3,w4,w5] == 0)

helo1 domove getmarkerpos "gone1"
helo1 flyinheight 30
helo1 setspeedmode "FULL"
@helo1 distance gone1 < 200

deletevehicle helo1
exit

This was made with the chopper in flight at mission start. It flies to LZ, waits for you to get out and leaves. Once its out of hearing distance its deleted.

Change it, use it, screw it up. I dont care, its here for all to use!

A huge thanx to all that helped me out with this!

Spooner 2007-11-04: Rejected since it is much too specific (no configuration options, requiring an exact setup) and the functionality could very easily be replicated with a couple of synchronised waypoints in the editor.
« Last Edit: 04 Nov 2007, 15:30:34 by Spooner »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Dedicated Server chopper script for all.
« Reply #1 on: 05 Jun 2007, 16:32:41 »
Correct me if I'm wrong but you need:
1 - A chopper named helo1
2 - A logic named start1 placed at the LZ
3 - A marker named "gone1" placed somewhere where you want the chopper to be deleted
4 - No more than five units named w1, w2, w3, w4 and w5 in the chopper to dismount at the LZ.

Right?

And, what puzzles me, why do you move it at the beginning to the North at 50 m/s?

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Dedicated Server chopper script for all.
« Reply #2 on: 07 Jun 2007, 00:19:42 »
Maybe you could make it more dynamic so you can execute it like [helo,logic,marker,group] exec "heloland.sqs"

You could even try SQF syntax  ;)