Abilities Scripted:ru

From Valve Developer Community
Jump to: navigation, search
Dead End - Icon.png
This article has no links to other VDC articles. Please help improve this article by adding links 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 - Имя вызываемой функции