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.

SetInteger(name: string, value: int): void;
void SetInteger(string name, int value);
def SetInteger(name as string, value as int) as void

Parameters

nameThe name of the parameter.
valueThe new value for the parameter.

Description

Sets the value of an integer parameter.

SetInteger(id: int, value: int): void;
void SetInteger(int id, int value);
def SetInteger(id as int, value as int) as void

Parameters

idThe id of the parameter. The id is generated using Animator::StringToHash.
valueThe new value for the parameter.

Description

Sets the value of an integer parameter.