Fermantor
Active Member
TFS 1.3 (OTBR)
I wanna add a function that boss monsters (rare spawning creatures like undead cavebear, midnight panther, etc.) only life for like 3h and get removed after that time has passed.
The problem is, I don't know how I can set a starting point for the timer, since monsters that appear in raids don't count under the "onSpawn" function, so I can't start an event at the spawn time.
The "onThink" function for the monster only executed when it is active, so I need a way to get the spawned time or "alive in seconds" parameter to compare it in onThink.
My question now is, can I get the "created time" somehow or start an event with the creation of the monster?
If you're having problem understanding my problem I try to explain it in more detail.
I wanna add a function that boss monsters (rare spawning creatures like undead cavebear, midnight panther, etc.) only life for like 3h and get removed after that time has passed.
The problem is, I don't know how I can set a starting point for the timer, since monsters that appear in raids don't count under the "onSpawn" function, so I can't start an event at the spawn time.
The "onThink" function for the monster only executed when it is active, so I need a way to get the spawned time or "alive in seconds" parameter to compare it in onThink.
My question now is, can I get the "created time" somehow or start an event with the creation of the monster?
If you're having problem understanding my problem I try to explain it in more detail.