Difference between revisions of "SetBodyWeight - ActorBase"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(Added F4SE member)
 
imported>Qazaaq
(Changed the example)
Line 19: Line 19:


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



Revision as of 19:16, 19 April 2017

F4SE Member of: ActorBase Script

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

Syntax

Function SetBodyWeight(BodyWeight weight) Native

Parameters

  • weight: The BodyWeight information for this actor.

Return Value

None.

Examples

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.SetBodyWeight(bodyWeight)
Player.QueueUpdate()

Notes

None.

See Also