I have scripted my initialisation trigger so a race can be selected in game and a small base will spawn relative to the selected race. (I would prefer if this could be relative to the race selected in the lobby and not from a dialog in the map but I can find no event, nor any tutorials for this can anyone help ?)
My problem is, I have set an action for my spawned infantry to enter a bunker, the trigger is, as far as I can tell, correct yet only one unit enters the bunker when I run the map, the rest just stand there kicking their heels.
Apparently my picture doesn't want to display so this is the script, anything look wrong to you pros ? (P1 bunk is a point directly at the centre of said bunker)
Repeat 3 times:
Order (closest unit to [P1 bunk] in (bunker units in (entire map) owned by player any player matching Required: structure targeting (closest unit to P1 bunk in (any units in (entire map) owned by player (triggering player) matching excluded: mechanical, structure with at most any amount))) (replace existing orders)
This action is placed at the end of a long list of "create units" actions in my initialisation trigger which is triggered by the selection of a race.
I have scripted my initialisation trigger so a race can be selected in game and a small base will spawn relative to the selected race. (I would prefer if this could be relative to the race selected in the lobby and not from a dialog in the map but I can find no event, nor any tutorials for this can anyone help ?)
My problem is, I have set an action for my spawned infantry to enter a bunker, the trigger is, as far as I can tell, correct yet only one unit enters the bunker when I run the map, the rest just stand there kicking their heels.
Apparently my picture doesn't want to display so this is the script, anything look wrong to you pros ? (P1 bunk is a point directly at the centre of said bunker)
Repeat 3 times: Order (closest unit to [P1 bunk] in (bunker units in (entire map) owned by player any player matching Required: structure targeting (closest unit to P1 bunk in (any units in (entire map) owned by player (triggering player) matching excluded: mechanical, structure with at most any amount))) (replace existing orders)
This action is placed at the end of a long list of "create units" actions in my initialisation trigger which is triggered by the selection of a race.
EDIT: Solved, using "create cargo units" action.
hey saltydog when you say you used "create cargo units" how did you order the units to enter a bunker that at that point did not exist.