Difference between revisions of "GetDeadCount"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
imported>Pintocat
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Incomplete}}
{{Function
 
|CSWikiPage = GetDeadCount
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/GetDeadCount GetDeadCount].
|origin = GECK1
|summary = Returns the total number of this creature/NPC type that have been killed.  
|name = GetDeadCount
|returnVal = number
|returnType = int
|arguments =
  {{FunctionArgument
  |Name = ActorID
  }}
|example = <pre>GetDeadCount CrMolerat</pre>
Returns the amount of Molerats that are dead.
}}


=='''Notes'''==
=='''Notes'''==
*On a templated actor, GetDeadCount works only on the specified reference.
*On a templated actor, GetDeadCount works only on the specified reference.
*Note that the parameter is an actor base ID, so you cannot use this function to test whether a named object reference has been killed.
*[[Resurrect]]ing a killed actor will not lower the death count for actors of that type.  This is true even of unique or referenced actors.


=='''See Also'''==
=='''See Also'''==
Line 10: Line 23:


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.0)]]
[[Category:Functions (GECK 1.1)]]
[[Category:Actor State Functions]]
[[Category:Actor State Functions]]
[[Category:Actor State Functions (GECK 1.0)]]
[[Category:Actor State Functions (GECK 1.1)]]
[[Category:Condition Functions]]
[[Category:Condition Functions]]
[[Category:Condition Functions (GECK 1.0)]]
[[Category:Condition Functions (GECK 1.1)]]

Latest revision as of 02:59, 20 January 2017

< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: GetDeadCount.

A function included in the GECK version 1.1.0.36.

Description

Returns the total number of this creature/NPC type that have been killed.

Syntax

[help]
(number:int) GetDeadCount ActorID

Example

GetDeadCount CrMolerat

Returns the amount of Molerats that are dead.

Notes

  • On a templated actor, GetDeadCount works only on the specified reference.
  • Note that the parameter is an actor base ID, so you cannot use this function to test whether a named object reference has been killed.
  • Resurrecting a killed actor will not lower the death count for actors of that type. This is true even of unique or referenced actors.

See Also

GetDead