SetWeight - ActorBase

Revision as of 12:38, 23 September 2012 by imported>Sagitarius22
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: ActorBase Script

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

SyntaxEdit

Function SetWeight(float weight) native

ParametersEdit

  • weight: The amount to set the actor's weight to.

Return ValueEdit

None

NotesEdit

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

ExamplesEdit

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

See AlsoEdit