Skip to content

HasBuffDynamicMaterialBoolDriver

Inheritance 4 ancestors · 50 siblings

Class Documentation

Edit documentation

A bool driver that is true while the source has an active buff of a given script. It is the most used bool driver in shipped data: skins use it to switch materials, submeshes and effects while a spell's buff is on the unit.

The source must be a unit. The driver returns false without one.

On each evaluation the driver looks through the unit's active buffs. It returns true when one of them has the buff's script and at least mDeactivateEarlySeconds of its duration left.

Properties

0x149271dd

Bool = true
14.16
Edit documentation

When true, the driver also looks through a second list of buffs that the unit keeps. When false, it reads only the active buffs.

Spell

Hash = "0x0"
Edit documentation

The spell object of the buff. When it resolves, the buff is found by the script name of that spell. This is the form shipped data uses.

mDeactivateEarlySeconds

F32 = 0
Edit documentation

The time, in seconds, by which the driver turns false before the buff ends. A buff with less time left than this value does not count. 0 keeps the driver true for the whole buff.

mScriptName

String = ""
Edit documentation

The script name of the buff. Used only when Spell does not resolve.