Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.CastAbilityOnTarget

From Valve Developer Community
Jump to navigation Jump to search
Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

void CastAbilityOnTarget(handle target, handle ability, int playerIndex)

Cast an ability on a target entity.


Parameters

Type Name Description Example
handle target The target to this ability is to be casted on target
handle ability The ability on the unit to be cast on the target keys.caster:FindAbilityByName("mana_burn")
int playerIndex The casting units player ID keys.caster:GetOwner():GetPlayerID()