Multiple start location

tokey

New Member
Reaction score
1
hey guys im making a td were i want creeps to spawn from both sides of a straight path a go to the oposite side, so i was just wondering if you can do multiple start locations or wud i have to have left to right player 11 and right to left player 12?
 

tokey

New Member
Reaction score
1
..What?

Can you give a better example?

ive attached an image of 1 of the paths i want creeps to spawn from the left and move to the right BUT ALSO spawn at the right and move to the left.
can i make 2 start locations for player 12 which is computer or wud i have to make 2 computer players and have a 1 start location for each player 1 at ;eft side and 1 at the right side
 

Attachments

  • path.jpg
    path.jpg
    39.3 KB · Views: 178

tokey

New Member
Reaction score
1
i have regions at both ends at ive made a startlocation for player 12 at both ends but will only spawn from the left :/
 

Avaleirra

Is back. Probably.
Reaction score
128
Just make 2 actions, and spawn the units at the regions not the start location :)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
What do you mean "Starting Location" ?
Are u actually using a players starting location for this ? :S

Well, that's not the way to go... You should use variables for it, like this:
Trigger:
  • Spawn from Right
    • Events
      • Time - Elapsed game time is 30.00 seconds
    • Conditions
    • Actions
      • Set TempPoint = (Center of Region 1 <gen>)
      • Set TempPoint2 = (Center of Region 2 <gen>)
      • Unit - Create 1 Footman for Player 12 (Brown) at TempPoint facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack-Move To TempPoint2
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)


This is the trigger which moves unit from right to left :D
Then just change the regions and the player to make them move from left to right, or use this :
Trigger:
  • Spawn from Right
    • Events
      • Time - Elapsed game time is 30.00 seconds
    • Conditions
    • Actions
      • Set TempPoint = (Center of Region 1 <gen>)
      • Set TempPoint2 = (Center of Region 2 <gen>)
      • Unit - Create 1 Footman for Player 12 (Brown) at TempPoint facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack-Move To TempPoint2
      • Unit - Create 1 Footman for Player 11 (Dark Green) at TempPoint2 facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack-Move To TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)


Which will do both triggers in one :D
 

Avaleirra

Is back. Probably.
Reaction score
128
You can make it simpler than that I think, no need for the variables in the first trigger



EDIT: nvm, then it leaks
 

tokey

New Member
Reaction score
1
What do you mean "Starting Location" ?
Are u actually using a players starting location for this ? :S

Well, that's not the way to go... You should use variables for it, like this:
Trigger:
  • Spawn from Right
    • Events
      • Time - Elapsed game time is 30.00 seconds
    • Conditions
    • Actions
      • Set TempPoint = (Center of Region 1 <gen>)
      • Set TempPoint2 = (Center of Region 2 <gen>)
      • Unit - Create 1 Footman for Player 12 (Brown) at TempPoint facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack-Move To TempPoint2
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)


This is the trigger which moves unit from right to left :D
Then just change the regions and the player to make them move from left to right, or use this :
Trigger:
  • Spawn from Right
    • Events
      • Time - Elapsed game time is 30.00 seconds
    • Conditions
    • Actions
      • Set TempPoint = (Center of Region 1 <gen>)
      • Set TempPoint2 = (Center of Region 2 <gen>)
      • Unit - Create 1 Footman for Player 12 (Brown) at TempPoint facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack-Move To TempPoint2
      • Unit - Create 1 Footman for Player 11 (Dark Green) at TempPoint2 facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack-Move To TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)


Which will do both triggers in one :D

thx man thats exactly what i needed and worked a treat +rep :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top