Animator Lua API: Difference between revisions
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| missionObjectName || string | | missionObjectName || string | ||
Line 25: | Line 27: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| missionObjectName || string | | missionObjectName || string | ||
Line 40: | Line 44: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| missionObjectName || string | | missionObjectName || string | ||
Line 55: | Line 61: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| missionObjectName || string | | missionObjectName || string | ||
Line 68: | Line 76: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| missionObjectName || string | | missionObjectName || string | ||
Line 81: | Line 91: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| missionObjectName || string | | missionObjectName || string | ||
Line 94: | Line 106: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| missionObjectName || string | | missionObjectName || string | ||
Line 107: | Line 121: | ||
This file is auto generated, please don't edit manually! | This file is auto generated, please don't edit manually! | ||
'''Docs last hacked together on''': | '''Docs last hacked together on''': 10/11/2017 11:07 | ||
[[Catagory:Modding]][[Catagory:LuaAPI]] | |||
[[ | |||
[[ |
Revision as of 11:43, 10 November 2017
Animator
Description
Allows the user to set properties of a mission objects Unity animator The animator allows users to set key keyframe-able animations to control a large amount of components. See [Unity's documentation] for more details
Functions
SetBool
Animator.SetBool(missionObjectName, parameterName, value)
Expected parameter types
Name | Type |
---|---|
missionObjectName | string |
parameterName | string |
value | bool |
Description: Sets a bool parameter by name
Returns: Nothing
SetFloat
Animator.SetFloat(missionObjectName, parameterName, value)
Expected parameter types
Name | Type |
---|---|
missionObjectName | string |
parameterName | string |
value | number |
Description: Sets a float parameter by name
Returns: Nothing
SetInt
Animator.SetInt(missionObjectName, parameterName, value)
Expected parameter types
Name | Type |
---|---|
missionObjectName | string |
parameterName | string |
value | number |
Description: Sets a int parameter by name
Returns: Nothing
SetTrigger
Animator.SetTrigger(missionObjectName, parameterName)
Expected parameter types
Name | Type |
---|---|
missionObjectName | string |
parameterName | string |
Description: Begins a trigger parameter by name
Returns: Nothing
GetBool
Animator.GetBool(missionObjectName, parameterName)
Expected parameter types
Name | Type |
---|---|
missionObjectName | string |
parameterName | string |
Description: Gets the current value of a bool parameter by name
Returns: The current bool value of the parameter
GetFloat
Animator.GetFloat(missionObjectName, parameterName)
Expected parameter types
Name | Type |
---|---|
missionObjectName | string |
parameterName | string |
Description: Gets the current value of a float parameter by name
Returns: The current float value of the parameter
GetInt
Animator.GetInt(missionObjectName, parameterName)
Expected parameter types
Name | Type |
---|---|
missionObjectName | string |
parameterName | string |
Description: Gets the current value of a int parameter by name
Returns: The current int value of the parameter
This file is auto generated, please don't edit manually!
Docs last hacked together on: 10/11/2017 11:07 Catagory:ModdingCatagory:LuaAPI