hey guys i'm abit lost here i want when a player picks the race from the ui to spawn x unit i got, what i'm stuck on is on to make that unit spawn other units at it and not at a point i have this so far
Picked Race
Events
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Protoss
Then
Unit - Create 1 Protoss - Conqueror for player (Triggering player) at (Start location of player (Triggering player)) using point facing (No Options)
Else
Dialog - Hide Race for (Player group((Triggering player)))
^^ thats works but should i put the spawn action in there or, cos i made a new trigger for the spawn but it don't work, heres my spawn trigger
protoss level 0
Events
Unit - (Unit 1 from (Units in (Protoss - Conqueror units in (Protoss - Conqueror units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Any Player matching Excluded: Missile, Dead, Hi creates a unit with ability Any or behavior Any
Timer - Every 2.0 seconds of Game Time
Local Variables
Conditions
Actions
Unit - Create 1 Protoss - Glory for player (Triggering player) at (Position of (Triggering unit)) using default facing (No Options)
^^^^^^^^^^^^^^^ thats what i'm lost on how to i make units spawn at a unit and not at a fixed point, cos i want it as the unit moves the spawned units still spawn close to it and not at some x point that don't move xD
Pick all (Conqueror) unit in entire map and do
-> Unit - Create 1 Protoss - Glory for player (Owner of (Picked Unit)) at (Position of (Picked Unit)) using default facing (No Options)
Also, I believe the first event of your second trigger will not do anything and can be deleted. You only need the periodic timer event.
hey guys i'm abit lost here i want when a player picks the race from the ui to spawn x unit i got, what i'm stuck on is on to make that unit spawn other units at it and not at a point i have this so far
Picked Race
Events
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Protoss
Then
Unit - Create 1 Protoss - Conqueror for player (Triggering player) at (Start location of player (Triggering player)) using point facing (No Options)
Else
Dialog - Hide Race for (Player group((Triggering player)))
^^ thats works but should i put the spawn action in there or, cos i made a new trigger for the spawn but it don't work, heres my spawn trigger
protoss level 0
Events
Unit - (Unit 1 from (Units in (Protoss - Conqueror units in (Protoss - Conqueror units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Any Player matching Excluded: Missile, Dead, Hi creates a unit with ability Any or behavior Any
Timer - Every 2.0 seconds of Game Time
Local Variables
Conditions
Actions
Unit - Create 1 Protoss - Glory for player (Triggering player) at (Position of (Triggering unit)) using default facing (No Options)
^^^^^^^^^^^^^^^ thats what i'm lost on how to i make units spawn at a unit and not at a fixed point, cos i want it as the unit moves the spawned units still spawn close to it and not at some x point that don't move xD
Change the action of your second trigger to:
Pick all (Conqueror) unit in entire map and do -> Unit - Create 1 Protoss - Glory for player (Owner of (Picked Unit)) at (Position of (Picked Unit)) using default facing (No Options)
Also, I believe the first event of your second trigger will not do anything and can be deleted. You only need the periodic timer event.