Jump to content
Sign in to follow this  
DodgyGeeza

Group move in vehicle? GONE?!

Recommended Posts

Can anyone tell me how to move grps into vehicles as the old script doesnt seem to work anymore, cheers.

Share this post


Link to post
Share on other sites

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

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

(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

in a trigger/script/init line does not work in ArmA ?

Share this post


Link to post
Share on other sites

I think he knows that command, but that in ArmA, it doesnt seem to work anymore, Sanctuary

Share this post


Link to post
Share on other sites
Quote[/b] ]{_x moveincargo NAMEOFTHEVEHICLE} foreach units NAMEOFTHEGROUP

does

Quote[/b] ]"_x moveincargo NAMEOFTHEVEHICLE" foreach units NAMEOFTHEGROUP

does not

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">NAMEOFTHESOLDIER moveincargo NAMEOFTHEVEHICLE

This works too

Share this post


Link to post
Share on other sites

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;

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×