Jump to content
Sign in to follow this  
El Mariachi

move units to object on trigger

Recommended Posts

I tried the following

[c1, c2, c3] domove a1truck;

as the onact for a trigger, but it does not move these units to the area.

will i have to create a separate script for this or what am i doing wrong?

i even tried creating an array, defined it units_c = [c1, c2, c3]

units_c domove a1truck;

but that doesnt seem to work either.

Share this post


Link to post
Share on other sites

Can you give us more specific information about what you're trying to do? What are c1, c3, c3? Units? Groups? Do they already have waypoints? What's a1truck? Empty? Already crewed? Does it have waypoints? What trigger is triggering this? Do you want them to move TO the truck or actually GET IN the truck? What do you want to have happen once they are in/around the truck?

Share this post


Link to post
Share on other sites

I think this is what your after.

thislist=[c1,c2,c3] ;{_x domove getpos a1truck} foreach thislist;

You were on the right track creating an array.

Edited by F2k Sel

Share this post


Link to post
Share on other sites
Thanks, f2k, it works. I appreciate it.

No problem, I'd never done it before so it will add to my knowledge.

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  

×