Dota 2 Workshop Tools/Scripting/Abilities Scripted: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
* <code>ScriptFile</code> - Specifies the Lua file where the function resides | * <code>ScriptFile</code> - Specifies the Lua file where the function resides | ||
* <code>Function</code> - Function name to call | * <code>Function</code> - Function name to call | ||
{{shortpagetitle}} | {{shortpagetitle}} | ||
[[Category:Dota 2 Workshop Tools]] | [[Category:Dota 2 Workshop Tools]] |
Revision as of 07:40, 11 August 2014
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 residesFunction
- Function name to call