Skip to content

Busy

The Busy feature allows you to query whether a specific limb of the character is being used or not. This allows other systems to determine whether an action can be performed or not.

Using the right hand

For example, a character that is shooting with its right hand can set its right arm as busy. By doing so you can prevent the character from opening a door with the right hand until the right arm is available again.

Busy at Runtime

When entering Play-Mode the mannequin icon at the top of the Character component will change its color from grey to green.

Character Busy at Runtime

Its color changes in real-time and indicates:

  • Green: The Limb is available to use.
  • Red: The Limb is currently busy.

You can use the Set Busy instruction and the Is Busy condition to set and retrieve the current Busy status of a Character.

Scripting

Coding Knowledge

The following concepts are meant for experienced programmers.

The following properties can be queried to know the availability state of a limb or group of limbs:

IsArmLeftBusy : boolean
IsArmRightBusy : boolean

IsLegLeftBusy : boolean
IsLegRightBusy : boolean

AreArmsBusy : boolean
AreLegsBusy : boolean

IsBusy : boolean

Additionally, limbs can be marked as busy or made available again using the MakeXXXBusy() and RemoveXXXBusy() methods respectively, where XXX is the limb of the body. For example, to set the Left Leg as busy, call the MakeLegLeftBusy() method, and to make it available again, call the RemoveLegLeftBusy() method:

public Character character;

public void StartShooting()
{
    // The right arm can't be used for anything else until it's released:
    this.character.Busy.MakeArmRightBusy();
}

public void StopShooting()
{
    this.character.Busy.RemoveArmRightBusy();
}

All available methods

For more information about all the available methods on the Busy system, check the script under Plugins/GameCreator/Packages/Core/Runtime/Characters/Features/Busy.