Difference between revisions of "ForceActorValue"
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: | ||
{{Function | |||
|CSWikiPage = ForceActorValue | |||
|origin = GECK1 | |||
|summary = ForceActorValue modifies the current stat to the specified value (not to be confused with SetActorValue, which changes the BASE value of the stat). | |||
|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]] |