Why can't I remove Locust

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:

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


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
      • 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
      • 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')
      • Trigger - Turn on PickHighElves <gen>
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
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.
You're not. May I suggest searching the forums? It's been frequently discussed that Locust is strange in that it does not remove from a unit properly, although this allows for interesting effects that would not be possible otherwise (eg. an unselectable unit which may still be targeted by enemies.)

The process to fully restore a unit from Locust status is convoluted and involves morphing it.
 

rafaxik

New Member
Reaction score
2
Have you tried, just for testing:
Trigger:
  • Selection - Add TempUnit to Selection for Player

It might work I guess
 

Bogrim

y hello thar
Reaction score
154
If memory serves me right, you should hide and unhide the unit to make it selectable after removing locust.
 

feelingparty

New Member
Reaction score
3
Thanx for everything. I solved it now using this action.
Trigger:
  • Game - Disable selection and deselection functionality (Disable selection circles)

Trigger:
  • Game - Enable selection and deselection functionality (Enable selection circles)
 

rafaxik

New Member
Reaction score
2
Thanx for everything. I solved it now using this action.
Trigger:
  • Game - Disable selection and deselection functionality (Disable selection circles)

Trigger:
  • Game - Enable selection and deselection functionality (Enable selection circles)

Humm.. interesting
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top