Posted by: Kane49 Mar 15 2013, 17:33
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
Posted by: D@V£ Mar 15 2013, 19: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"
http://community.bistudio.com/wiki/forEach
Posted by: Kane49 Mar 16 2013, 16:37
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"
http://community.bistudio.com/wiki/forEach
Your a life saver thanks i thought i would go insane with that problem thanks again.