Difference between revisions of "GetActorValue"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Arthmoor
(Added info to specify this must be called on an actor reference and not a base NPC)
imported>DragoonWraith
(Partial RV: syntax is more accurate, so it can stay, but the note is out of place - that's true of EVERY function that uses UseReference.)
Line 6: Line 6:
  GetActorValue Strength  
  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).
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==  
==See Also==  

Revision as of 12:33, 26 December 2010

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).

See Also