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.

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

Parameters

nameThe name of the parameter.

Description

Sets a trigger parameter to active.

Triggers are parameters that act mostly like booleans, but get resets to inactive when they are used in a transition.

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

Parameters

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

Description

Sets a trigger parameter to active.

Triggers are parameters that act mostly like booleans, but get resets to inactive when they are used in a transition.