ForceActorValue
Jump to navigation
Jump to search
Syntax:
[ActorID.]ForceActorValue StatName value [ActorID.]ForceAV StatName value
Example:
ForceActorValue Health 50
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:
Short modParameter Set modParameter to ( 50 - GetActorValue Health ) ModActorValue Health, modParameter
Because the GetActorValue function returns the current state, including all effects, damage, and other ModActorValue numbers, ForceActorValue will produce different ModActorValue results at different times.
Note that like ModActorValue, when used in a script this change is permanent. See ModActorValue for discussion of how this works.
Notes[edit | edit source]
- Should never be used on the player, as it will seriously screw up that actor value when combined with other mods or scripts that adjust it or depend on it.
See Stats List for a list of stats that can be accessed using GetBaseActorValue.