Editing SetValue - ObjectReference

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 28: Line 28:
; Set Nancy's current health actor value
; Set Nancy's current health actor value
Nancy.SetValue(HealthAV, 20)
Nancy.SetValue(HealthAV, 20)
</source>
== Notes ==
* 2 decimal float precision from -0x001FFFFF to 0x001FFFFF
* int precision from 0x00200000 to 0x00FFFFFF ( and -0x00200000 to -0x00FFFFFF )
* values not reliable when greater than 0x00FFFFFF ( or less than -0x00FFFFFF)
** Odd numbers outside range will either shift up or down to the next adjacent even number.
<source lang="papyrus">
; This is outside the reliable range
npc.SetValue(MyActorValue, 0x0FFFFFFF)
npc.GetValue(MyActorValue) ; Returns 0x10000000
</source>
</source>


Please note that all contributions to the Fallout4 CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see FalloutCK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)