• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Set Unit state to percent

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

Edit: Nevermind, setting to 100% is trivial, think this is solved now.

I'd like to make a trigger that set's a unit's HP and mana to 100%.

What is the native for this? SetUnitState takes a real value, which is not too helpful unless I did some (clever) maths.

I found this thread: http://www.hiveworkshop.com/forums/graveyard-418/snippet-unit-state-percent-189943/

but I'm hard pressed to believe there isn't a native to do a rather simple task--this function is a native in Starcraft I, which is almost 20 years old, and also Blizzard's...
 
Last edited:
Status
Not open for further replies.
Top