Difference between revisions of "GetDeadCount"

632 bytes added ,  03:59, 20 January 2017
m
no edit summary
imported>Geckbot
m (Robot: Automated text replacement (-Link to TES4 Construction Set Wiki +{{Incomplete}}\n\nLink to TES4 Construction Set Wiki))
imported>Pintocat
m
 
(5 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.1)]]
[[Category:Actor State Functions]]
[[Category:Actor State Functions]]
[[Category:Actor State Functions (GECK 1.1)]]
[[Category:Condition Functions]]
[[Category:Condition Functions]]
[[Category:Condition Functions (GECK 1.1)]]
Anonymous user