Warchild-NC
New Member
- Reaction score
- 0
Im working on my Hero Defence map atm and trying to get the player 2 side spawns to spawn only if player 2 is playing. this is the last of a few things ive tried, and it still dont work. player 2 side keeps spawning aways. could someone tell me the correct trigger i should be using?
Thanks for any replys
The Noob
Code:
player2check
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) controller) Equal to User
Then - Actions
Set SpawnLOC2 = (Center of D201 <gen>)
Unit - Create 1 Spawn[SpawnInt] for Player 12 (Brown) at SpawnLOC2 facing Default building facing degrees
Custom script: call RemoveLocation (udg_SpawnLOC2)
Unit - Order (Last created unit) to Patrol To (Center of d202 <gen>)
Else - Actions
Do nothing
Thanks for any replys
The Noob