Well, I'm really tired, and I can't figure it out now and my brain is just overwhelmed after 5 hours in the editor doing a map from scratch.
So what I want is:
There is a unit close to bunker (Marine, Marauder, Reaper, etc.). At "Map Initialization", load closest units to bunker until it gets full.
This is what I got:
Unit - Order Bunker [105.50, 61.50] to (Bunker - Load (Bunker) targeting (Closest unit to (Position of Bunker[105.50, 61.50]) in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, etc., with at most Any Amount))) (Replace Existing Orders)
Again, I'm super tired, it's probably something dumb that I'm not seeing (as always). But I just wanted to leave it here in case anyone knows how to solve it! Thank you!
There is a much easier way to do this. You can use the "Create Cargo Units" action.
When you choose that, you get an option to create a number of units of your choice. For example: Create 4 Marine as Cargo in Bunker[105.50, 61.50]
Rollback Post to RevisionRollBack
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Yeah I did that, although it's not what I want. Only want that if a bunker is created, order exactly 4 marines to get in bunker. Should I use the data editor? Make a behavior perhaps?
Are your marines right next to the bunker? If not, you'll need to order the marines to move close to the bunker first or use the Move Unit (instantly) function (though if this is at map initialization, you'll probably want the Issue Order function.) The Load ability has a finite range, so it's probably failing to load because of that.
Yeah, they aren't exactly next to the bunker, but I thought something like that is happening. The marines not being exactly right beside the bunker. However, is it possible to do this with Data?
Most things are possible with Data, though perhaps complicated. Are you asking if it's possible to order the marines to move close to the bunker via the Data editor or if it's possible to extend the range of the Load ability? In any case, your needs might be better served in the Data forum if that's what you're looking for.
Yes to the move marines close to the bunker and no to the extend range of the load ability. And yup, already did posted something on the Data Editor forum.
Unit - Order Bunker [105.50, 61.50] to (Bunker - Load (Bunker) targeting (Closest unit to (Position of Bunker[105.50, 61.50]) in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, etc., with at most Any Amount))) (Replace Existing Orders)
Are you ordering the Bunker to load itself in (target unit might be bunker)?
Also, there is the smart command order, so you would always be able to grab 4 marines (pick each unit in (Marines in region .... with at most 4)) in that area and order them to use their smart command action on the bunker simulating a right click onto it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Well, I'm really tired, and I can't figure it out now and my brain is just overwhelmed after 5 hours in the editor doing a map from scratch.
So what I want is:
There is a unit close to bunker (Marine, Marauder, Reaper, etc.). At "Map Initialization", load closest units to bunker until it gets full.
This is what I got:
Unit - Order Bunker [105.50, 61.50] to (Bunker - Load (Bunker) targeting (Closest unit to (Position of Bunker[105.50, 61.50]) in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, etc., with at most Any Amount))) (Replace Existing Orders)
Again, I'm super tired, it's probably something dumb that I'm not seeing (as always). But I just wanted to leave it here in case anyone knows how to solve it! Thank you!
There is a much easier way to do this. You can use the "Create Cargo Units" action.
When you choose that, you get an option to create a number of units of your choice. For example: Create 4 Marine as Cargo in Bunker[105.50, 61.50]
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Starcraft II: A War Story Campaign - A multi-act campaign with custom factions. Follow my discord for updates: https://discord.gg/Ztu44gZ
If you want to see a list of other awesome campaigns, go to: Custom Campaign Initiative
@DudkiSC2: Go
Yeah I did that, although it's not what I want. Only want that if a bunker is created, order exactly 4 marines to get in bunker. Should I use the data editor? Make a behavior perhaps?
@joemart06: Go
Are your marines right next to the bunker? If not, you'll need to order the marines to move close to the bunker first or use the Move Unit (instantly) function (though if this is at map initialization, you'll probably want the Issue Order function.) The Load ability has a finite range, so it's probably failing to load because of that.
@BasharTeg: Go
Yeah, they aren't exactly next to the bunker, but I thought something like that is happening. The marines not being exactly right beside the bunker. However, is it possible to do this with Data?
@joemart06: Go
Most things are possible with Data, though perhaps complicated. Are you asking if it's possible to order the marines to move close to the bunker via the Data editor or if it's possible to extend the range of the Load ability? In any case, your needs might be better served in the Data forum if that's what you're looking for.
@BasharTeg: Go
Yes to the move marines close to the bunker and no to the extend range of the load ability. And yup, already did posted something on the Data Editor forum.
Are you ordering the Bunker to load itself in (target unit might be bunker)?
Also, there is the smart command order, so you would always be able to grab 4 marines (pick each unit in (Marines in region .... with at most 4)) in that area and order them to use their smart command action on the bunker simulating a right click onto it.