Home   Help Search Login Register  

Author Topic: choppers fly at 0 with engine on  (Read 672 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
choppers fly at 0 with engine on
« on: 01 Oct 2005, 20:26:48 »
okay all i want is 3 choppers to keep their engines on whilst on the ground waiting for 3 groups to get in without taking of then coming back down to load the men
ive tried
chopper action ["engine on"] ; chopper flyinheight 0
in the choppers init field
then in the onactivation field of the groups get in waypoint i have chopper flyinheight 50

but that doens towrk the choppers take off then come back dwon to load the men then take off again i want them all there engines on on the ground
how can i do this without a loop but if theres no other way then how would i do the loop
cheers

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:choppers fly at 0 with engine on
« Reply #1 on: 01 Oct 2005, 21:12:00 »
For 1 chopper do the following
squadgroupname refers to group name of the infantry squad you want to get in the chopper

Lets name the chopper Wair1
1) have the choppers "landing waypoint"  as a "load waypoint"
and in the "on activation" field place the following code

[Wair1,squadgroupname] exec "land.sqs"; Wair1 lockWP true


LAND.sqs
Quote
_helo = _this select 0
_group = _this select 1
_helo land "Getin"
_helo flyinheight 0

#START
~5
if!(({_x in _helo}count units _group)==(count units _group))then{goto "START"}else{_helo flyinheight 15;_helo lockwp false;exit}

not sure if wp type has to be a load waypoint, cant remember, experiment anyway


What basically happens it will land, engine on, waiting for the number of units in groupname to be in the helo Wair1, then its next waypoint will be unlocked and it will fly off

Oh, place an invisible H where u want the chopper to land
« Last Edit: 01 Oct 2005, 21:16:56 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline 456820

  • Contributing Member
  • **
Re:choppers fly at 0 with engine on
« Reply #2 on: 01 Oct 2005, 22:07:46 »
thanks for that but the chopper isnt coming down to pick the men up its starting on the ground i want it to start its engine and wait for the men to get on the set of
my groups first waypoint is a get in one on top of the heli

also how can i get the chopper to hover at about 1m and let of the men 2 at a time until everyones out with about 2 second intervals between each pair getting off
to simulate a hot LZ insertion

thanks

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:choppers fly at 0 with engine on
« Reply #3 on: 02 Oct 2005, 05:10:22 »
the same idea as before for the hovering except flyinheight a meter or 2 off the ground

then a script looping through the cargo giving eject commands. not hard

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:choppers fly at 0 with engine on
« Reply #4 on: 02 Oct 2005, 13:11:13 »
Bloody choppers. They can be very very annoyng.

http://www.ofpec.com/editors/resource_view.php?id=197
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."