Difference between revisions of "ForceActorValue"

186 bytes added ,  09:32, 15 January 2011
no edit summary
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
imported>Ez0n3
 
Line 1: Line 1:
'''Syntax:'''
{{Function
  [''ActorID''.]ForceActorValue ''StatName'' ''value''
  |CSWikiPage = ForceActorValue
  [''ActorID''.]ForceAV ''StatName'' ''value''
  |origin = GECK1
'''Example:'''
  |summary = ForceActorValue modifies the current stat to the specified value (not to be confused with SetActorValue, which changes the BASE value of the stat).
  ForceActorValue Health 50
|name = ForceActorValue
 
|alias = ForceAV
ForceActorValue modifies the current stat to the specified value (not to be confused with SetActorValue, which changes the BASE value of the stat). The equivalent of:  
|returnType = void
|referenceType = [ActorRefID]
|arguments =
  {{FunctionArgument
  |Name = [[ActorValue]]
  |Type = string
  }}{{FunctionArgument
  |Name = Value
  |Type = int
  }}
|example = ForceActorValue Health 50
The equivalent of:  
  Short modParameter
  Short modParameter
  Set modParameter to ( 50 - GetActorValue Health )
  Set modParameter to ( 50 - GetActorValue Health )
Line 13: Line 24:
   
   
Note that like ModActorValue, when used in a script this change is permanent. See [[ModActorValue]] for discussion of how this works.
Note that like ModActorValue, when used in a script this change is permanent. See [[ModActorValue]] for discussion of how this works.
}}


==Notes==
==Notes==
Line 33: Line 45:
*[[RestoreActorValue]]
*[[RestoreActorValue]]
*[[SetActorValue]]
*[[SetActorValue]]


[[Category:Functions]]
[[Category:Functions]]
Anonymous user