SetBodyWeight - ActorBase

Revision as of 03:17, 21 January 2018 by imported>Qazaaq (added required f4se version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

F4SE Member of: ActorBase Script
Requires F4SE version 0.3.1 or higher.

Sets this actors BodyWeight information. Call QueueUpdate on the Actor instance to update visually.

SyntaxEdit

Function SetBodyWeight(BodyWeight weight) Native

ParametersEdit

  • weight: The BodyWeight information for this actor.

Return ValueEdit

None.

ExamplesEdit

Actor Player = Game.GetPlayer()

ActorBase:BodyWeight bodyWeight = new ActorBase:BodyWeight
bodyWeight.Thin = 0.8
bodyWeight.Muscular = 0.1
bodyWeight.Large = 0.1
Debug.Trace(bodyWeight)

Player.GetActorBase().SetBodyWeight(bodyWeight)
Player.QueueUpdate()

NotesEdit

None.

See AlsoEdit