You have to base the unit off of a hero and then just change the model of the unit to whatever model you need.
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