Difference between revisions of "SetUnconscious - Actor"
Jump to navigation
Jump to search
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 30: | Line 30: | ||
== Notes == | == Notes == | ||
* Actors cannot be unconscious and restrained in the same time - flaging the actor as unconscious unflags it as restrained, and vice versa. | * 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 == |
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.