Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:GetLocomotionArchetype

The Get Locomotion Archetype node takes in an ILocomotionModule and returns the Nullable`1LocomotionArchetype
Get Locomotion Archetype
Module
*
Locomotion

The Get Locomotion Archetype node takes in an ILocomotionModule and returns the Nullable`1<LocomotionArchetype> that was provided from a user's locomotion module (found in the locomotion modules component category).

Inputs

The user's locomotion module.

Outputs

Returns the (nullable) locomotion archetype.

Examples

Detecting if a user is in Walk

The output of this node is a nullable type, because of this any checks need to be done with compatible types. This is made tricky by ProtoFlux's limitations with casting nullables so you need to manually connect the correct nodes.

In this example, PackNullable is used to create a compatible value that is then compared. However UnpackNullable can also be used after the node to then do a similar check.

Using Unpack instead before the compare.