HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

question about "UnitApplyTimedLifeBJ"

09-23-2007, 05:49 AM#1
chien86
Quote:
function UnitApplyTimedLifeBJ takes real duration, integer buffId, unit whichUnit returns nothing
call UnitApplyTimedLife(whichUnit, buffId, duration)
endfunction

I create 1 unit Thunder Hawk for my hero, and after that, I use that function for that Hawk.
In the buffid part, I put my custom buff with name "Thunder Hawk" on

But when the thunder hawk is create, its expiration timer type of it becomed Timed Life, not is the name of my buff. What's happen with this ?

And can anyone tell me how to fix this
09-23-2007, 06:22 AM#2
TaintedReality
Was the buff based off of another timed-life buff? Like Water Elemental or something. Also, you should show us exactly how you typed it in because the way you're saying it makes it sound like you messed up =P.
09-23-2007, 07:52 AM#3
chien86
oh, my buffID is BNsw, based on buff Hawk
and here is my code:

Quote:
call CreateNUnitsAtLoc( 1, GetUnitTypeId(u), GetOwningPlayer(u), point, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 70.00, 'BNsw', GetLastCreatedUnit() )
09-23-2007, 12:53 PM#4
blu_da_noob
I haven't used timed life in a while, but as I recall it totally ignored the buff type passed to it. So basically it says 'Timed Life' no matter what buff name you put there.
09-23-2007, 07:52 PM#5
Hydrolisk
Maybe all it's doing is replacing the name of the buff? So it's still your custom buff, but its name would be displayed as "Timed Life."
Probably not though.
09-23-2007, 07:57 PM#6
Vexorian
The buff must be based of golem summoning or something like that to change the text.

If you give it an animated dead buff the unit will be purple.

This native does not ignore buffs, seriously.