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.

SetBool(name: string, value: bool): void;
void SetBool(string name, bool value);
def SetBool(name as string, value as bool) as void

Parameters

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

Description

Sets the value of a bool parameter.

SetBool(id: int, value: bool): void;
void SetBool(int id, bool value);
def SetBool(id as int, value as bool) 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 a bool parameter.