Difference between revisions of "ForceActorValue"
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: | ||
{{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 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 |