PDA

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">&#34;_x moveincargo NAMEOFTHEVEHICLE&#34; 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

XCess
Nov 25 2006, 02:46
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

HappyG
Dec 1 2006, 07:56
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 {&#40;_i &#60; _max&#41;} do {
&#40;group_units select _i&#41; moveInCargo vehicle;
_i = _i + 1;
};
[/QUOTE]