Background for Skyrim SE
Member of the ActorBase script
voidfunctionSetWeight(floatweight)Native

Description

Wiki Description

Sets the body weight of this actor. (This function requires SKSE)


Caveats

CK Wiki - Notes

  • This is a function performed on an ActorBase, meaning all Actors derived from this will have this weight.
  • This functions requires Actor.QueueNiNodeUpdate() to be called for the changes to be visible.

Parameters

floatweight

CK Wiki Description

The amount to set the actor's weight to.


Examples

ActorBase pActorBase = Game.GetPlayer().GetActorBase()
pActorBase.SetWeight(100.0)
; Game.GetPlayer().QueueNiNodeUpdate()

Auto-Generated Example

float myFloat__weight

myActorBase__toCallFunctionOn.SetWeight(myFloat__weight)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.