Difference between revisions of "GetDeadCount"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Yukichigai
imported>Pintocat
m
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
   |Name = ActorID
   |Name = ActorID
   }}
   }}
  |example = <pre>GetDead CrMolerat</pre>
  |example = <pre>GetDeadCount CrMolerat</pre>
Returns the amount of Molerats that are dead.
Returns the amount of Molerats that are dead.
}}
}}
Line 17: Line 17:
*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.
*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.
*[[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'''==

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