Making a unit a hero?

Vince

New Member
Reaction score
0
How do I change a regular unit into a hero? I just want to make my unit into a hero to have an inventory. I remember there was a true/false field for Is Hero or something like that, but I can't seem to find it.:banghead:
 

Zaraf

New Member
Reaction score
22
You have to base the unit off of a hero and then just change the model of the unit to whatever model you need.
 

Vince

New Member
Reaction score
0
You have to base the unit off of a hero and then just change the model of the unit to whatever model you need.

Oh okay, I must be thinking about Is Hero ability. Last question, how can I make an action for when a countdown timer hits 0?
 

Zaraf

New Member
Reaction score
22
JASS:
private function TimerCallback takes nothing returns nothing
    //timer function stuff here
endfunction

private function MyFunction takes nothing returns nothing
local timer t = CreateTimer()  //Use NewTimer() if you are using Vex's timer utils

call TimerStart(t, 1.00, false, function TimerCallback)
//1.00 is the amount of time in seconds the timer runs before calling the
//function, false means that this timer is a one shot (and not repeating), and
//the function to be called is the TimerCallback.
endfunction
 

Moridin

Snow Leopard
Reaction score
144
If you just want a unit to have an inventory like a hero you could just add the ability Inventory (hero) to any unit instead of having a hero base and changing the model (which works).
 

Magic

New Member
Reaction score
0
you dont need jass, just do what he said earlier change the model and model art and missle art etc etc and you'll be fine.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top