Difference between revisions of "GetActorValue"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Vswe
m (Added Search Terms)
imported>Arthmoor
(Added info to specify this must be called on an actor reference and not a base NPC)
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
  [''ActorID''.]GetActorValue ''StatName''  
  [''ActorRefID''.]GetActorValue ''StatName''  
  [''ActorID''.]GetAV ''StatName''
  [''ActorRefID''.]GetAV ''StatName''


'''Example:'''
'''Example:'''
Line 7: Line 7:


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 00:08, 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).

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