Dota 2 Workshop Tools/Scripting/API/Global.LinkLuaModifier: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
|||
Line 6: | Line 6: | ||
''' void LinkLuaModifier(string '' | ''' void LinkLuaModifier(string ''modifier_name'', string ''file_path'', int ''motion_controller_type'') ''' | ||
''Link a lua-defined modifier with the associated class. | ''Link a lua-defined modifier with the associated class. If the modifier is located within the root vscript folder, then the second argument (file_path) may be omitted' | ||
Line 14: | Line 14: | ||
;Example | ;Example | ||
<source lang="lua"> | <source lang="lua"> | ||
LinkLuaModifier( "modifier_pudge_meat_hook", LUA_MODIFIER_MOTION_HORIZONTAL) | |||
</source> | </source> | ||
== Parameters == | == Parameters == | ||
{| class="standard-table" style="width: 50%;" | {| class="standard-table" style="width: 50%;" |
Revision as of 10:30, 27 June 2015

Function Description
void LinkLuaModifier(string modifier_name, string file_path, int motion_controller_type)
Link a lua-defined modifier with the associated class. If the modifier is located within the root vscript folder, then the second argument (file_path) may be omitted'
- Example
LinkLuaModifier( "modifier_pudge_meat_hook", LUA_MODIFIER_MOTION_HORIZONTAL)
Parameters
Type | Name | Description |
---|---|---|
string | string_1 | No Description Set |
string | string_2 | No Description Set |
int | int_3 | No Description Set |