SetUnconscious

From GECK
Jump to: navigation, search

Link to TES4 Construction Set Wiki: SetUnconscious.

A function included in the GECK for Fallout 3.

Description

Turns an actor's conscious behavior on or off. Actors that are unconscious will not use AI behavior and will not play idle sounds. When an unconscious actor is activated, a message stating that the actor is unconscious will appear.

Syntax

[help]
Actor.SetUnconscious UnconsciousFlag:int

Example

Protectron01REF.SetUnconscious 1

Protectron01REF will be set to be unconscious

Notes

  • Using this on dead actors will cause them to be resurrected, but will not cause them to play a "get up" animation. As with ResurrectActor, this can cause various animation problems if not called in the same frame as the actor's death.

See Also