Thread: ABuff System
View Single Post
Old 07-23-2007, 02:50 AM   #23
NagelBagel
User
 
NagelBagel's Avatar
 
Join Date: Nov 2003
Posts: 33

NagelBagel has little to show at this moment (7)

Default

Awesome system. I just made a bunch of stat functions, and it should work really well with them.

Anyway, I found a bug. In the death trigger, you need to make sure abu isn't 0 before running the code posted below. That or check it in ABuffUnitCleanup. Otherwise you'll be destroying a nonexistant trigger.

Code:
set t = timerStr.create()
set t.data = integer(abu)
call TimerStart(t.t, 0.0, false, function ABuffUnitCleanup)
NagelBagel is offline   Reply With Quote