SetUnconscious - Actor
Member of: Actor Script
Set or clear this actor's unconscious status.
SyntaxEdit
bool Function SetUnconscious(bool abUnconscious = true) native
ParametersEdit
- abUnconscious: Whether to set or clear the unconscious state.
- Default: True
Return ValueEdit
True if the unconscious state was set. False otherwise (usually cause the actor is dead).
ExamplesEdit
; Set Stony to be unconscious
Stony.SetUnconscious()
; Clear Stony's unconscious status
Stony.SetUnconscious(false)
NotesEdit
Unconscious actors cannot:
- Move
- Talk
- Go into combat
You also cannot set the unconsciousness state of a dead actor.