SetUnconscious - Actor
Revision as of 11:21, 20 November 2015 by imported>Plplecuyer
Member of: Actor Script
Set or clear this actor's unconscious status.
Syntax[edit | edit source]
bool 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]
True if the unconscious state was set. False otherwise (usually cause the actor is dead).
Examples[edit | edit source]
; Set Stony to be unconscious
Stony.SetUnconscious()
; Clear Stony's unconscious status
Stony.SetUnconscious(false)
Notes[edit | edit source]
Unconscious actors cannot:
- Move
- Talk
- Go into combat
You also cannot set the unconsciousness state of a dead actor.