Jump to content
Sign in to follow this  
shifty_ginosaji

Stratis Invasion and scripts

Recommended Posts

Hi, i cannot seem to be able to get these scripts working:

Moveincargo Intial Script:

//Commands

{_x moveincargo s1} foreach units group AC-1;
{_x moveincargo s2} foreach units group A1-C;
{_x moveincargo s3} foreach units group A2-C;

{_x moveincargo s4} foreach units group BC-1;
{_x moveincargo s5} foreach units group B1-C;
{_x moveincargo s6} foreach units group B2-C;

//1st Platoon

{_x moveincargo e1} foreach units group A1-1;
{_x moveincargo e2} foreach units group A1-2;
{_x moveincargo e3} foreach units group A1-3;

{_x moveincargo e4} foreach units group B1-1;
{_x moveincargo e5} foreach units group B1-2;
{_x moveincargo e6} foreach units group B1-3;

//2nd Platoon

{_x moveincargo e7} foreach units group A2-1;
{_x moveincargo e8} foreach units group A2-2;
{_x moveincargo e9} foreach units group A2-3;

{_x moveincargo e10} foreach units group B2-1;
{_x moveincargo e11} foreach units group B2-2;
{_x moveincargo e12} foreach units group B2-3;

Dynamic Moveincargo Script:

_group = _this select 0;
_transport = _this select 1;

{_x moveincargo _transport} foreach units group _group;

any help would be nice:):):)

Share this post


Link to post
Share on other sites

You don't need the 'group' in there e.g:

{_x moveincargo s1} foreach units AC-1;

Share this post


Link to post
Share on other sites

Foxy is true, if AC-1 and so on are groups, if they are units, should work. Anyway I am not sure if you can use - in group names.

Share this post


Link to post
Share on other sites

'-' is not a valid character for a variable name. If you name the group leader with said name but without the '-' and use that name in your script, it should work.

Also, keep in mind that can cause you problems in multiplayer as you are running it on all machines (so every player joining the game tries to move the units into the cargo of the vehicles, which may or may not work for 1 or more of the units).

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  

×