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


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

Revision as of 19:56, 11 July 2023

Member of: Actor Script

Set or clear this actor's unconscious status.

Syntax

Function SetUnconscious(bool abUnconscious = true) native

Parameters

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

Return Value

None.

Examples

; Set Stony to be unconscious
Stony.SetUnconscious()


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

Notes

  • Actors cannot be unconscious and restrained in the same time - flaging the actor as unconscious unflags it as restrained, and vice versa.

See Also