Get Rally Point

roaaaarrrr

New Member
Reaction score
33
I'm trying to set the rally point for a custom revive trigger, but having some issues. Basically the hero revives at the position he starts the game at, but I would like him to automatically move to the rally point the player has set for their main base. The main base can be upgraded to different tiers, so it isn't the same structure throughout the game. It doesnt seem like it should be that hard and I'm probably just missing something obvious. So is there a way that I can get the rally point of the base and then order the revived unit to move to that point upon revive...
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Sure, set each main base building to a variable for later reference (it will stay set even if the building is upgraded, I think), but in a more general case (if the building might be destroyed/rebuilt or you're actually swapping units), enumerate all units of the various unit-types for the main base tiers for whichever player is reviving, and:
JASS:
local location l = GetUnitRallyPoint(GetEnumUnit())
call IssuePointOrderLoc(hero, "move", l)
call RemoveLocation(l)
set l = null
 
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