IPB


Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
 
Reply to this topicStart new topic
> Ejecting a squad from aircraft
Kane49
post Mar 15 2013, 17:33
Post #1


New Member
*

Group: Members
Posts: 2
Joined: 15-March 13
Member No.: 10,104



Ok ive tryed and tryed this and only the leader parachutes the others stay in the plane.I have tryed alot of lines i have looked up in forums but it happens with everyone i try. This is what i put in the waypoint act.line Grp1 action ["Eject",pl1]; unassignvehicle Grp1 whats not right its so confusing wacko.gif

This post has been edited by Kane49: Mar 15 2013, 18:47
 
Quote Post
D@V£
post Mar 15 2013, 19:00
Post #2


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



Depending on how you've defined grp1 you'll want something that looks sort of like this:
CODE
{_x action ["Eject",pl1];unassignvehicle _x} foreach units grp1

(there's a way to do it that's a bit tidier, but I can't remember the exact syntax)

If grp1 is just your squad leader instead of the group itself, then you'll instead want "(group grp1)" instead of just "grp1", if it's an array you just need "grp1" rather than "units grp1"

BIKI page for forEach


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post
Kane49
post Mar 16 2013, 16:37
Post #3


New Member
*

Group: Members
Posts: 2
Joined: 15-March 13
Member No.: 10,104



QUOTE(D@V£ @ Mar 15 2013, 14:00) *
Depending on how you've defined grp1 you'll want something that looks sort of like this:
CODE
{_x action ["Eject",pl1];unassignvehicle _x} foreach units grp1

(there's a way to do it that's a bit tidier, but I can't remember the exact syntax)

If grp1 is just your squad leader instead of the group itself, then you'll instead want "(group grp1)" instead of just "grp1", if it's an array you just need "grp1" rather than "units grp1"

BIKI page for forEach

Your a life saver thanks i thought i would go insane with that problem thanks again.
 
Quote Post

Fast ReplyReply to this topicStart new topic
6 User(s) are reading this topic (6 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 19th March 2024 - 12:40