Set State By Name

Set State By Name

This module allows the user to set a state by name.


Attributes

Attributes

Type

Overridable

Description

stateName

string

yes

The state name

setStateOnAgentCreationOnly

bool

yes

If on, sets the state on agent creation only

seed

int

yes

Seed random value

stateRandomDelay

vector2

yes

This attribute accept a range (by default is 0,0).
If you put a range of 5, 20 then every agent will have a random delay between 5 to 20 frames when changing state.
If you want a specific delay without the random, use the same value in both the vector components, i.e. 5,5.


 

 

Copyright © 2017, Toolchefs LTD.