Difference between revisions of "SetValue - ObjectReference"
no edit summary
imported>DarkruneDK |
imported>Cobalt027 |
||
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> | ||