Difference between revisions of "ForceActorValue"

294 bytes added ,  09:32, 15 January 2011
no edit summary
imported>PoHa!
(copied info; removed incomplete tag; changed terminology)
imported>Ez0n3
 
(3 intermediate revisions by 2 users not shown)
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 29: Line 41:
*[[GetActorValueInfo]]
*[[GetActorValueInfo]]
*[[GetBaseActorValue]]
*[[GetBaseActorValue]]
*[[GetPermanentActorValue]]
*[[ModActorValue]]
*[[ModActorValue]]
*[[RestoreActorValue]]
*[[RestoreActorValue]]
*[[SetActorValue]]
*[[SetActorValue]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Actor Value Functions]]
[[Category:Actor Value Functions]]
[[Category:Actor Value Functions (GECK 1.1)]]


<!-- Begin Search Terms
<!-- Begin Search Terms
Anonymous user