GetSitState - Actor

Member of: Actor Script

Gets this actor's sit state.

SyntaxEdit

int Function GetSitState() native

ParametersEdit

None.

Return ValueEdit

The actor's current sit state.

The following values are returned:

  • 4: Sitting, wants to stand
  • 3: Sitting
  • 2: Not sitting, wants to sit
  • 0: Not sitting

ExamplesEdit

; Is the actor sitting?
if (Sleepy.GetSitState() != 0)
  Debug.Trace("Sleepy is sitting (or wants to sit, or wants to get up)!")
endIf

See AlsoEdit