Dota 2 Workshop Tools/Scripting/Abilities Scripted: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{otherlang2
{{lang|Dota 2 Workshop Tools/Scripting/Abilities Scripted}}
|zh-cn=Dota_2_Workshop_Tools:zh-cn/Scripting:zh-cn/Abilities_Scripted:zh-cn
 
}}
It is possible to call Lua script functions when abilities are used to create even more interesting unique abilities.
It is possible to call Lua script functions when abilities are used to create even more interesting unique abilities.



Revision as of 09:21, 25 November 2022

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