Remove Random Corpse

danpe

New Member
Reaction score
5
How can i make my trigger to choose a random corpse from a region and remove it?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Code:
Unit - Remove (Random unit from (Units in (Playable map area) matching (((Matching unit) is dead) Equal to (==) True))) from the game
 

danpe

New Member
Reaction score
5
Thanks.

Less corps = less lag right?
If i'll make this trigger work every 5 sec, will it lag?
 

danpe

New Member
Reaction score
5
Trigger:
  • Remove Corps
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Set TEMP_Corpse = (Random unit from (Units in (Playable map area) matching (((Matching unit) is dead) Equal to True)))
      • Unit - Remove TEMP_Corpse from the game


How can i remove leaks?
 

HG-Bonfire

New Member
Reaction score
22
Assign a unit group variable as (Units in (Playable map area) matching (((Matching unit) is dead.

Then when you need your unit do (Random unit from (YourUnitGroup)

Then do the custom script call DestroyGroup(udg_YourUnitGroup)

And that shouldn't leak, I think...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top