what function i could use to pick next nearest units?
or mb u know how to do it other way, i need group to split in a two and attack 2 diff positions, i read wiki but don't get how to get this done.
well look i got group of different type of units and i need to split them into a two groups with same number of each units, like (4 marauder and 4 marines) into (x2 2 marines 2 marauders) or if there like 5 medics and 6 marines into (3 medics 3 marines and 2 medics 3 marines) there could be up to 5 different unit types, but i need to do exac same thing to all of them put them in a same values into 2 groups, split them as it possible
theres really no default function for that in sc2mapeditor? looks pretty useful in many directions to me.
There's a unit closest to point function, and it specifically asks for a unit group. Perhaps you could use that.
but i don't know witch unit will be closest, mb i don't understand something? i need to split groups in a order of a type and count them all be4 split as i said be4
Splitting them by unit type would be rather complicated, but splitting them just so both unit groups have equal units shouldnt be that hard. Do you depend on both unit groups having equal amounts of marines & medics?
Splitting them by unit type would be rather complicated, but splitting them just so both unit groups have equal units shouldnt be that hard. Do you depend on both unit groups having equal amounts of marines medics?
well if theres no easy ways to equal each types, np, can u show me how to equal amounts?
damn perfect, I made order system for my map, it take 7 positions nw n ne c sw s se (u can put them in a line, its actually a linear build) and order units to attack other camps on positions, p13 and p14 are players from different teams, so if you capture one camp my order system check how many fronts u got, and theres possibly 1 or 2 front, and then it sends groups to next uncaptured position, well i explained how it works, but on practice is pretty shitty made by me cuz I'm not that good with computer science like u Ultragon, but I think I'm good at making table games, mb someone can use my idea to get better made of this lol, but it works perfect to me anyway
"ur split function made it possible" =)
thing is its alot of code to make line of 7 positions, if u add more positions like i did in here u will spend a ten thousand years to make biggest line, i don't know how to make an universal way to order this camps with more positions, good that i don't need it for my mod lol
what function i could use to pick next nearest units? or mb u know how to do it other way, i need group to split in a two and attack 2 diff positions, i read wiki but don't get how to get this done.
Depends on what criteria you want to split them with. Please give some more detail on what you planned to do exactly.
@TheUltragon: Go
well look i got group of different type of units and i need to split them into a two groups with same number of each units, like (4 marauder and 4 marines) into (x2 2 marines 2 marauders) or if there like 5 medics and 6 marines into (3 medics 3 marines and 2 medics 3 marines) there could be up to 5 different unit types, but i need to do exac same thing to all of them put them in a same values into 2 groups, split them as it possible
theres really no default function for that in sc2mapeditor? looks pretty useful in many directions to me.
There's a unit closest to point function, and it specifically asks for a unit group. Perhaps you could use that.
but i don't know witch unit will be closest, mb i don't understand something? i need to split groups in a order of a type and count them all be4 split as i said be4
Splitting them by unit type would be rather complicated, but splitting them just so both unit groups have equal units shouldnt be that hard. Do you depend on both unit groups having equal amounts of marines & medics?
well if theres no easy ways to equal each types, np, can u show me how to equal amounts?
Here
thx man that helped me alot
damn perfect, I made order system for my map, it take 7 positions nw n ne c sw s se (u can put them in a line, its actually a linear build) and order units to attack other camps on positions, p13 and p14 are players from different teams, so if you capture one camp my order system check how many fronts u got, and theres possibly 1 or 2 front, and then it sends groups to next uncaptured position, well i explained how it works, but on practice is pretty shitty made by me cuz I'm not that good with computer science like u Ultragon, but I think I'm good at making table games, mb someone can use my idea to get better made of this lol, but it works perfect to me anyway "ur split function made it possible" =)
thing is its alot of code to make line of 7 positions, if u add more positions like i did in here u will spend a ten thousand years to make biggest line, i don't know how to make an universal way to order this camps with more positions, good that i don't need it for my mod lol
Oh and all of this Outposts its just invurable buildings i use to check who owns camp, positions of them u can get from name of variables