Background for Skyrim SE
Member of the Actor script
voidfunctionSetUnconscious(boolabUnconscious=true)Native

Description

Wiki Description

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.

Documentation Comment

Sets this actor as unconscious or not


Caveats

CK Wiki - Notes

  • 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.

Parameters

boolabUnconscious=true

CK Wiki Description

Whether to set or clear the unconscious state.

  • Default:True

Examples

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

Auto-Generated Example

bool myBool__abUnconscious

myActor__toCallFunctionOn.SetUnconscious(myBool__abUnconscious)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.