SetUnconscious - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Set or clear this actor's unconscious status. Unconscious actors cannot move or "think" - pick packages, yell alarms etc.; actors also cannot be talked to or pickpocketed in this state.

Syntax[edit | edit source]

Function SetUnconscious(bool abUnconscious = true) native

Parameters[edit | edit source]

  • abUnconscious: Whether to set or clear the unconscious state.
    • Default: True

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Set Stony to be unconscious
Stony.SetUnconscious()


; Clear Stony's unconscious status
Stony.SetUnconscious(false)

Notes[edit | edit source]

  • Actors cannot be unconscious and restrained in the same time - flaging the actor as unconscious unflags it as restrained, and vice versa.
  • Unconscious actor can detect the player, but cannot react to his actions - for instance, stealing while being detected by an unconscious actor does not trigger steal alarm; moreover, the actor will not trigger steal alarm if become "conscious" afterwards.
  • Unconscious actor does not become hostile if attacked in unconscious state, but, unlike the stealing case, will be hostile if become "conscious" afterwards.

See Also[edit | edit source]