GetActorValue

From the Oblivion ConstructionSet Wiki
Revision as of 00:08, 26 December 2010 by imported>Arthmoor (Added info to specify this must be called on an actor reference and not a base NPC)
Jump to navigation Jump to search

Syntax:

[ActorRefID.]GetActorValue StatName 
[ActorRefID.]GetAV StatName

Example:

GetActorValue Strength 

Returns the current, modified value of the specified stat. GetActorValue can use any stat available to the player or actor (NPCs and creatures).

This function must be called on an actor reference, not the base NPC. Calling this on a base NPC will abort the script it is called in and does not generate a compile error in the CS.

See Also