Alright soo i have some marines that i want to enter a train via triggers
now i added the Bunker load/unload ability to the train and made it so that any neutral or ally unit could enter it
now it works fine and all but i cant figure out how to get the marines to run up and enter the train using triggers
I have gotten the train to move and load the units but obviously dont want the train to come off its tracks to load the units
So what is the correct order to get the "Marines" to run up to the train and enter it
I'm guessing you're not finding the correct order since you're trying to issue something to the Marines. Marines rightclicking a bunker is using the smart command to load up. If you take a look at a bunker, you'll see an order that pretty much noone (that I know of) use in a normal game.
Yea that works but the only problem is the train goes to load the unit not the other way around
but i found away around it
By having your unit just right click the train it will load then when the trains cargo is
equal to the number of playersplayer(variable) (Given that each player only controls 1 unit) which in my map they do
And you subtract 1 from playersgiven(variable) if a player leaves
it activates the given cinematic trigger that I was going to use to make all the units load the train
this actually worked out better for my case now that each player will have to load the train before the trigger starts
Another variant would be to temporarily disable the move command for the train and then use the load order. Might work for your scenario unless the marines are train robbers trying to board it on the run. :-)
Alright soo i have some marines that i want to enter a train via triggers now i added the Bunker load/unload ability to the train and made it so that any neutral or ally unit could enter it now it works fine and all but i cant figure out how to get the marines to run up and enter the train using triggers I have gotten the train to move and load the units but obviously dont want the train to come off its tracks to load the units So what is the correct order to get the "Marines" to run up to the train and enter it
Thanks!
I'm guessing you're not finding the correct order since you're trying to issue something to the Marines. Marines rightclicking a bunker is using the smart command to load up. If you take a look at a bunker, you'll see an order that pretty much noone (that I know of) use in a normal game.
Yea that works but the only problem is the train goes to load the unit not the other way around but i found away around it
By having your unit just right click the train it will load then when the trains cargo is equal to the number of playersplayer(variable) (Given that each player only controls 1 unit) which in my map they do
And you subtract 1 from playersgiven(variable) if a player leaves it activates the given cinematic trigger that I was going to use to make all the units load the train
this actually worked out better for my case now that each player will have to load the train before the trigger starts
Another variant would be to temporarily disable the move command for the train and then use the load order. Might work for your scenario unless the marines are train robbers trying to board it on the run. :-)