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

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{otherlang2
|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 20:11, 19 August 2014

Template:Otherlang2 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