You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:AddThreatTransfer
- Last edited 4 years ago by Vlash Nytefall
LUA Functions: AddThreatTransfer()
Adds a threat transfer for the given percentage
Syntax
AddThreatTransfer(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (Spawn), param3 (float)
- param1 is the spawn who will be transferring the hate
- param2 is the spawn who we transfer the hate to
- param3 is the percentage of hate to transfer
Usage
function cast(Caster, Target)
AddThreatTransfer(Caster, Target, 30)
end
When cast this spell will add a threat transfer of 30%
Notes
Only 1 threat transfer can be active at a time
This function can only be used in a spell script