- Joined
- Nov 3, 2013
- Messages
- 989
Started with a new map recently. Going to use the player start location to decide where each players base will be upon initialization. im using angles between the start locations and *center of map* (x = 0, y = -256) so i can just loop the rest of the buildings up to place. Sadly it was acting up, wrong angles, found out that "center of playable map area" does not count with boundaries, so i used (x = 0, y = -256) instead and it improved slightly.
also attached map if someone want to look into it (i think it probably has something to do with the structures' pathing)
I don't really think it's a problem in the trigger but im posting it here anyway just in case i missed something, besides the -672.
Edit: Im starting to think it might have something to do with the pathing of the structures, since they don't have standard circle ones like units this might affect the 'location' even though if i were to place them in the editor it shows a square
also attached map if someone want to look into it (i think it probably has something to do with the structures' pathing)
-
Player Group - Pick every player in Init_PlayerGroup_HumanPlayers and do (Actions)
-
Loop - Actions
-
Set Temp_Real[1] = (Angle from ((Picked player) start location) to Init_Point_CenterOfMap)
-
Unit - Create 1 Town Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees
-
Set Temp_Point[1] = (((Picked player) start location) offset by 576.00 towards (Temp_Real[1] + 90.00) degrees)
-
Unit - Create 1 Barracks for (Picked player) at Temp_Point[1] facing Default building facing degrees
-
Set Temp_Point[1] = (Temp_Point[1] offset by 320.00 towards Temp_Real[1] degrees)
-
Unit - Create 1 Guard Tower for (Picked player) at Temp_Point[1] facing Default building facing degrees
-
Set Temp_Point[1] = (Temp_Point[1] offset by -672.00 towards Temp_Real[1] degrees)
-
Unit - Create 1 Guard Tower for (Picked player) at Temp_Point[1] facing Default building facing degrees
-
Set Temp_Point[1] = (((Picked player) start location) offset by 576.00 towards (Temp_Real[1] - 90.00) degrees)
-
Unit - Create 1 Barracks for (Picked player) at Temp_Point[1] facing Default building facing degrees
-
Set Temp_Point[1] = (Temp_Point[1] offset by 320.00 towards Temp_Real[1] degrees)
-
Unit - Create 1 Guard Tower for (Picked player) at Temp_Point[1] facing Default building facing degrees
-
Set Temp_Point[1] = (Temp_Point[1] offset by -672.00 towards Temp_Real[1] degrees)
-
Unit - Create 1 Guard Tower for (Picked player) at Temp_Point[1] facing Default building facing degrees
-
-
I don't really think it's a problem in the trigger but im posting it here anyway just in case i missed something, besides the -672.
Edit: Im starting to think it might have something to do with the pathing of the structures, since they don't have standard circle ones like units this might affect the 'location' even though if i were to place them in the editor it shows a square
Attachments
Last edited: