Hi ! I'm trying to develop a generic spawning/moving system over 20 regions.
I have 3 static points over these zones so I only need 3 triggers to handle everything.
The thing is I need to spawn dummies for each player over these points to identify the zones, my trigger will look like this :
"P1Zone" above contains the 3 locations (SPAWN, WAYPOINT, LEAVE) so I should get 3 on this request :
Question is : who's the most high between me and my world editor ?
I have 3 static points over these zones so I only need 3 triggers to handle everything.
The thing is I need to spawn dummies for each player over these points to identify the zones, my trigger will look like this :
-
Spawn to Waypoint
-
Events
-
Unit - A unit enters Player1Spawn <gen>
-
Unit - A unit enters Player2Spawn <gen>
-
Unit - A unit enters Player3Spawn <gen>
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Entering unit)) Equal to TEAM_1_IA_PLAYER
-
(Owner of (Entering unit)) Equal to TEAM_2_IA_PLAYER
-
-
-
-
Actions
-
Set tempSpawnLocation = (Position of (Entering unit))
-
Set uCheckPointDummy = (Units within 300.00 of tempSpawnLocation matching ((Unit-type of (Matching unit)) Equal to dummyCheckpoint))
-
Game - Display to (All players) the text: (String((Number of units in uCheckPointDummy)))
-
Custom script: call RemoveLocation(udg_tempSpawnLocation)
-
Set tempSpawn2Location = PLAYER_WAYPOINTS[(Player number of (Owner of (Random unit from uCheckPointDummy)))]
-
Custom script: call DestroyGroup(udg_uCheckPointDummy)
-
Unit - Order (Entering unit) to Move To tempSpawn2Location
-
Custom script: call RemoveLocation(udg_tempSpawn2Location)
-
-
-
Player Dummy Points
-
Events
-
Time - Elapsed game time is 1.00 seconds
-
-
Conditions
-
Actions
-
For each (Integer B) from 1 to 20, do (Actions)
-
Loop - Actions
-
Unit - Create 1 dummyCheckpoint for (Player((Integer B))) at PLAYER_SPAWN_POINT[(Integer B)] facing Default building facing degrees
-
Unit - Create 1 dummyCheckpoint for (Player((Integer B))) at PLAYER_LEAVE_POINT[(Integer B)] facing Default building facing degrees
-
Unit - Create 1 dummyCheckpoint for (Player((Integer B))) at PLAYER_WAYPOINTS[(Integer B)] facing Default building facing degrees
-
-
-
Wait 2.00 seconds
-
Game - Display to (All players) the text: (String((Number of units in (Units in P1Zone <gen> matching ((Unit-type of (Matching unit)) Equal to dummyCheckpoint)))))
-
Game - Display to (All players) the text: (String((Number of units in (Units in Player1Waypoint <gen> matching ((Unit-type of (Matching unit)) Equal to dummyCheckpoint)))))
-
-
"P1Zone" above contains the 3 locations (SPAWN, WAYPOINT, LEAVE) so I should get 3 on this request :
-
Game - Display to (All players) the text: (String((Number of units in (Units in P1Zone <gen> matching ((Unit-type of (Matching unit)) Equal to dummyCheckpoint)))))
Question is : who's the most high between me and my world editor ?
Last edited: