Abilities Scripted

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting
Revision as of 17:04, 6 August 2014 by VDCBot (talk | contribs) (Dota 2 Workshop Tools docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

It is possible to call Lua script functions when abilities are used to create even more interesting unique abilities.

"OnSpellStart"
{
	"RunScript"
	{
		"ScriptFile"		"custom_scripted_abilities.lua"
		"Function"		"Punch"
		"Target"		"POINT"
	}
}
  • ScriptFile - Specifies the Lua file where the function resides
  • Function - Function name to call