Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.CastAbilityOnTarget
< Dota 2 Workshop Tools | Scripting | API
		
		
		
		Jump to navigation
		Jump to search
		 Note: This page is automatically generated.  Any changes may be overwritten
Note: This page is automatically generated.  Any changes may be overwrittenFunction 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() |