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.

ResetTrigger(name: string): void;
void ResetTrigger(string name);
def ResetTrigger(name as string) as void

Parameters

nameThe name of the parameter.

Description

Resets the trigger parameter to false.

A trigger parameter is like a bool parameter, but the parameter is reset to false once the parameter has been consumed by a transition condition.

ResetTrigger(id: int): void;
void ResetTrigger(int id);
def ResetTrigger(id as int) as void

Parameters

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

Description

Resets the trigger parameter to false.

A trigger parameter is like a bool parameter, but the parameter is reset to false once the parameter has been consumed by a transition condition.