View Full Version : Group move in vehicle? GONE?!
DodgyGeeza
Nov 23 2006, 15:15
Can anyone tell me how to move grps into vehicles as the old script doesnt seem to work anymore, cheers.
Sanctuary
Nov 23 2006, 20:30
A simple
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x moveincargo NAMEOFTHEVEHICLE" foreach units NAMEOFTHEGROUP[/QUOTE]
or
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x moveincargo NAMEOFTHEVEHICLE} foreach units NAMEOFTHEGROUP[/QUOTE]
(without forgetting that the group must be named with a
NAMEOFTHEGROUP = group this
into a soldier init line)
or for an unit
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">NAMEOFTHESOLDIER moveincargo NAMEOFTHEVEHICLE[/QUOTE]
in a trigger/script/init line does not work in ArmA ?
Shashman
Nov 24 2006, 02:19
I think he knows that command, but that in ArmA, it doesnt seem to work anymore, Sanctuary
Quote[/b] ]{_x moveincargo NAMEOFTHEVEHICLE} foreach units NAMEOFTHEGROUP
does
Quote[/b] ]"_x moveincargo NAMEOFTHEVEHICLE" foreach units NAMEOFTHEGROUP
does not
BigWolf
Nov 28 2006, 18:02
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">NAMEOFTHESOLDIER moveincargo NAMEOFTHEVEHICLE[/QUOTE]
This works too
another working example:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
group_units = units group_leader;
_max = count group_units;
_i = 0;
while {(_i < _max)} do {
(group_units select _i) moveInCargo vehicle;
_i = _i + 1;
};
[/QUOTE]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.