No categories assigned

LUA:AddHate


LUA:AllFunctions - AddHate

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Adds hate to param2 from param1

Syntax

AddHate(param1, param2, param3, param4)

Parameters

Required - param1 (Spawn), param2 (Spawn), param3 (sint32), param4 (bool)
param1 is the
param2 is the
param3 is the
param4 is the


Example

function cast(Caster, Target)
    -- Add 50 hate to the target
    AddHate(Caster, Target, 50, 1)
end

This is a simple taunt spell that adds 50 hate to the target.

Notes

If this is called from a spell script then the target/targets will be determined by the spell data(encounter AE, true AE, single target, etc...), the param is still required though.