Talk:GetActorValue - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

Dead Actors[edit source]

I've noticed that 0 HP isn't absolute when it comes to dead actors. You can keep attacking their bodies and this function will continue to return the values, except that it'll be negative values instead. Actors can also die without their HPs reaching 0 and it didn't come from the Kill - Actor function. If the killcam system determines that the next hit is strong enough to kill the actor, the actor is killed and the killcam will play. The value returned will be the HP that the killcam system did its calculation from. --Rasikko (talk) 2021-08-01T05:17:21 (EDT)

Assigning the variable as int loses part of it's value. When using this function call, float type variables are preferred.

It'll autocast, but it would be better to just make the variables floats. I'll update the examples. Good eye! - JustinOther (talk)



A better understanding of this function when it is said it returns the current value, means for example..

The current health value of 400/400.

Where as, GetBaseActorValue - Actor will always return the base value. In other words, the default value in the editor.

Example: The above value was modified some other way, like through ModActorValue - Actor or leveling, but has a Base Value of 300/300. Lisselli (talk) 2016-11-10T18:39:36 (EST)