feelingparty
New Member
- Reaction score
- 3
So I want to make a unit selectable 15 seconds after the beginning of the game. So at the beginning I give it locust and at the 15th seconds I remove it but it doesn't seem to work (It adds Locust properly but doesn't remove it). Maybe I'm doing it wrong. Any thoughts? Here are the triggers:
And the seconds :
Trigger:
- Melee Initialization
- Events
- Map initialization
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Player number of (Picked player)) Less than or equal to 5
- Then - Actions
- Set TempPoint = ((Center of Region 001 <gen>) offset by ((SpawnDistance x (((Real((Player number of (Picked player)))) - 1.00) + 0.00)) + (SpawnDistance / 2.00)) towards 0.00 degrees)
- Unit - Create 1 Baby for (Picked player) at TempPoint facing 90.00 degrees
- Selection - Add (Last created unit) to selection for (Picked player)
- Unit - Pause (Last created unit)
- Custom script: call UnitAddAbility (GetLastCreatedUnit(),'Aloc')
- Custom script: call RemoveLocation (udg_TempPoint)
- Else - Actions
- Events
And the seconds :
Trigger:
- Beginning
- Events
- Time - TimerBeginning expires
- Conditions
- Actions
- Unit - Remove FieldDummy 0000 <gen> from the game
- Player Group - Pick every player in (All players) and do (Actions)
- Loop - Actions
- Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
- Loop - Actions
- Unit Group - Pick every unit in (Units of type Baby) and do (Actions)
- Loop - Actions
- Unit - Unpause (Picked unit)
- Unit - Order (Picked unit) to Special - Channel
- Loop - Actions
- Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
- Trigger - Turn off TimerDisplay <gen>
- Sound - Play ArrangedTeamInvitation <gen>
- Wait 1.00 game-time seconds
- Unit Group - Pick every unit in (Units of type Baby) and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Night Elf Druid Of The Claw - Roar
- Custom script: call UnitRemoveAbility (GetEnumUnit(),'Aloc')
- Loop - Actions
- Trigger - Turn on PickHighElves <gen>
- Events