Difference between revisions of "SetBodyWeight - ActorBase"
Jump to navigation
Jump to search
imported>Qazaaq (Added F4SE member) |
imported>Qazaaq (added required f4se version) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''F4SE Member of:''' [[ActorBase Script]] | '''F4SE Member of:''' [[ActorBase Script]] | ||
{{Template:Papyrus:RequiredF4SE|version=0.3.1}} | |||
Sets this actors [[BodyWeight Struct - ActorBase|BodyWeight]] information. Call [[QueueUpdate - Actor|QueueUpdate]] on the [[Actor]] instance to update visually. | Sets this actors [[BodyWeight Struct - ActorBase|BodyWeight]] information. Call [[QueueUpdate - Actor|QueueUpdate]] on the [[Actor]] instance to update visually. | ||
Line 19: | Line 20: | ||
ActorBase:BodyWeight bodyWeight = new ActorBase:BodyWeight | ActorBase:BodyWeight bodyWeight = new ActorBase:BodyWeight | ||
bodyWeight.Thin = 0. | bodyWeight.Thin = 0.8 | ||
bodyWeight.Muscular = 0. | bodyWeight.Muscular = 0.1 | ||
bodyWeight.Large = 1 | bodyWeight.Large = 0.1 | ||
Debug.Trace(bodyWeight) | Debug.Trace(bodyWeight) | ||
Player.SetBodyWeight(bodyWeight) | Player.GetActorBase().SetBodyWeight(bodyWeight) | ||
Player.QueueUpdate() | Player.QueueUpdate() | ||
</source> | </source> |
Latest revision as of 02:17, 21 January 2018
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.
Syntax[edit | edit source]
Function SetBodyWeight(BodyWeight weight) Native
Parameters[edit | edit source]
- weight: The BodyWeight information for this actor.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
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()
Notes[edit | edit source]
None.