Abilities Scripted

From Valve Developer Community
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