Abilities Scripted

From Valve Developer Community
Jump to: navigation, 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