Ejecting a squad from aircraft |
Ejecting a squad from aircraft |
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
This post has been edited by Kane49: Mar 15 2013, 18:47 |
|
|
Mar 15 2013, 19:00
Post
#2
|
|
Gee, I wish we had one of them doomsday machines. 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 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. |
|
|
Mar 16 2013, 16:37
Post
#3
|
|
New Member Group: Members Posts: 2 Joined: 15-March 13 Member No.: 10,104 |
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. |
|
|
Lo-Fi Version | Time is now: 30th March 2024 - 07:25 |