Abilities Scripted

From Valve Developer Community
Jump to navigation Jump to search
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Русский (ru)中文 (zh)Translate (Translate)

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