Abilities Scripted

From Valve Developer Community
< Ru‎ | Dota 2 Workshop Tools‎ | Scripting
Revision as of 10:01, 21 January 2024 by Thunder4ik (talk | contribs) (→‎top: clean up, added deadend tag)
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

Существует возможность вызывать функции Lua, когда способности используются. Это дает возможность создавать еще более интересные и уникальные способности.

"OnSpellStart"   
{
	"RunScript"
	{
		"ScriptFile"		"custom_scripted_abilities.lua"      // имя файла.lua
		"Function"		"Punch"//function
		"Target"		"POINT"//target
	}
}
  • ScriptFile - Указывает фаил Lua, где находится функция.
  • Function - Имя вызываемой функции