I assume you have unit X and want it to move against point Y?
The basic concept to move a unit is Unit - Order (Triggering unit) to ( Move targeting (Center of TargetRegion)) (Replace Existing Orders)
And to pick a unit in a region and issue order I would use:
Unit Group - Pick each unit in (Any units in Region owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to (Move targeting (Center of Region)) (Replace Existing Orders)
Now, for the latter one, it will move all units in a region to center of chosen region. You can specify a certain player here aswell so that it doesnt move both the enemies and your units for example.
Note, to change from the default order which is without a target point, click the red ( (marked above in Unit - Order action) and change to Order Targeting Point.
Reply with a little more details if I misinterpreted you. :)
its really hard to explain but i have a game, you move with A and D and you have a camera from the side
you have to go all the way to the right but you cant go up and down. So if you pass a unit without killing it you go a bit up or down and than you cant walk further on some places becouse of the terrain. So i though i create a trigger so u can click the middle mouse button and then u go to the middle again. But the problem is u cant just place a point or region becouse it depends on where u are.
Order unit to move to target point.
Use the X coordinate of the unit, and Y coordinate of the middle. (or the other way around if the map i vertical in the editor). Don't think there should be a problem with this. Just search through the functions for points untill you find this one, never had to use it so i don't know it's name, but it should be straighforward.
i think it will work, but one problem. i use the order unit to move to target point. i found the Y coordinate but the X coordinate always change becouse u move the unit, So i have to find position of unit but i cant choose it...
how can u order a unit to move to closest point for the ordering unit in a region with a trigger? If you dont understand it i will explain it better.
I assume you have unit X and want it to move against point Y?
The basic concept to move a unit is Unit - Order (Triggering unit) to ( Move targeting (Center of TargetRegion)) (Replace Existing Orders)
And to pick a unit in a region and issue order I would use:
Unit Group - Pick each unit in (Any units in Region owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting (Center of Region)) (Replace Existing Orders)
Now, for the latter one, it will move all units in a region to center of chosen region. You can specify a certain player here aswell so that it doesnt move both the enemies and your units for example.
Note, to change from the default order which is without a target point, click the red ( (marked above in Unit - Order action) and change to Order Targeting Point.
Reply with a little more details if I misinterpreted you. :)
@HPX: Go
its really hard to explain but i have a game, you move with A and D and you have a camera from the side
you have to go all the way to the right but you cant go up and down. So if you pass a unit without killing it you go a bit up or down and than you cant walk further on some places becouse of the terrain. So i though i create a trigger so u can click the middle mouse button and then u go to the middle again. But the problem is u cant just place a point or region becouse it depends on where u are.
Hope this explains enough.
Order unit to move to target point.
Use the X coordinate of the unit, and Y coordinate of the middle. (or the other way around if the map i vertical in the editor). Don't think there should be a problem with this. Just search through the functions for points untill you find this one, never had to use it so i don't know it's name, but it should be straighforward.
@TheAlmaity: Go
i think it will work, but one problem. i use the order unit to move to target point. i found the Y coordinate but the X coordinate always change becouse u move the unit, So i have to find position of unit but i cant choose it...
read the current Y of the unit