Difference between revisions of "SetUnconscious"
Jump to navigation
Jump to search
imported>Blinzler (→Syntax) |
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
==' | {{Function | ||
|CSWikiPage = SetUnconscious | |||
|origin = GECK1 | |||
|summary = Turns an actor's conscious behaviour on or off. Actors that are unconscious will not use AI behaviour and will not play idle sounds. When an unconscious actor is activated, a message stating that the actor is unconscious will appear. | |||
|referenceType = Actor | |||
|arguments = {{FunctionArgument | |||
|Name = UnconsciousFlag | |||
|Type = 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== | ||
*[[GetUnconscious]] | |||
[ | *[[ResurrectActor]] | ||
* | |||
[[ | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] |
Latest revision as of 13:15, 15 August 2009
< [[::Category:Functions|Category:Functions]]
Link to TES4 Construction Set Wiki: SetUnconscious.
A function included in the GECK version 1.1.0.36.
Description
Turns an actor's conscious behaviour on or off. Actors that are unconscious will not use AI behaviour and will not play idle sounds. When an unconscious actor is activated, a message stating that the actor is unconscious will appear.
Syntax
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.