Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GetFloat(name: string): float;
float GetFloat(string name);
def GetFloat(name as string) as float

Parameters

nameThe name of the parameter.

Description

Gets the value of a float parameter.

GetFloat(id: int): float;
float GetFloat(int id);
def GetFloat(id as int) as float

Parameters

idThe id of the parameter. The id is generated using Animator::StringToHash.

Description

Gets the value of a float parameter.