Home   Help Search Login Register  

Author Topic: Heli help  (Read 741 times)

0 Members and 1 Guest are viewing this topic.

Flubby

  • Guest
Heli help
« on: 01 Aug 2004, 23:49:40 »
Hi Guys,

Just wondering if it is possable to get a squad of 12 men to board 2 helis? I tried grouping the 2 helis with a load waypoint, but the squad leader only tells the last 8 to board the other 4 are left standing there sucking their thumbs :( and only one heli lands to do the collection.

Also

Is it possable to to have medivac choppers come on command or automatically when say 4 men are wounded, these 4 men board the heli and get took away for beer and crisps and then carried back in full health to the squad?

If it can be done but needs scripting, then is there anyone in a scripting mood :) I have enough trouble just trying to type never mind learning scripting :)

Cheers
Fubby

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Heli help
« Reply #1 on: 02 Aug 2004, 00:14:23 »
1.  

"_x assignAsCargo chopper1" forEach [loon1,loon2, etc]
"_x orderGetIn true" forEach [loon1, etc]

Syntax not guaranteed.


2.   You will need a switch trigger and a few lines of code.   The switch trigger is the crucial bit, read the tute in the Ed Depot if you are not familiar with them.    Apart from the code above you will need

loon1 setDammage 0

You should probably remove the wounded men from the squad temporarily

[loon1, loon2] join grpNull

later

[loon1, loon2] join whichEverGrp
Plenty of reviewed ArmA missions for you to play

Flubby

  • Guest
Re:Heli help
« Reply #2 on: 02 Aug 2004, 00:49:19 »
flikkin board logged me off while I was typing a reply  :noo:

Rather than type it all again (only because I cant remember what I was asking) are these commands init commands or script commands?

by the way the ed dept seems to be goosed it just refreshes the same page no matter what i click http://www.ofpec.com/editors/index.php

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Heli help
« Reply #3 on: 02 Aug 2004, 01:10:07 »
Quote
are these commands init commands or script commands?

I'm not quite sure what you mean ... in general, code can be used anywhere - init fields, triggers, scripts, waypoints, etc..   The init field is used for things that you want to happen at the start of the mission.

If you haven't already, I recommed you read snYpir's Friendly Intro to Code Snippets and also Johan Gustafsson's Scripting Guide, both in the Ed Depot.
Plenty of reviewed ArmA missions for you to play