• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Set Unit state to percent

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,337
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