Difference between revisions of "SetUnconscious - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
'''Member of:''' [[Actor Script]]
'''Member of:''' [[Actor Script]]


Set or clear this actor's unconscious status.
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 ==
== Syntax ==
Line 27: Line 27:
Stony.SetUnconscious(false)
Stony.SetUnconscious(false)
</source>
</source>
== 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.


== See Also ==
== See Also ==
*[[Actor Script]]
*[[Actor Script]]
*[[IsUnconscious - Actor]]
*[[IsUnconscious - Actor]]
*[[SetRestrained - Actor]]

Latest revision as of 06:31, 12 July 2023

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]