Difference between revisions of "GetBodyWeight - ActorBase"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(Changed the example)
imported>Qazaaq
m (Changed the example)
Line 16: Line 16:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
Actor Player = Game.GetPlayer()
ActorBase PlayerBase = Game.GetPlayer().GetActorBase()
ActorBase:BodyWeight bodyWeight = Player.GetActorBase().GetBodyWeight()
 
ActorBase:BodyWeight bodyWeight = PlayerBase.GetBodyWeight()
Debug.Trace(bodyWeight)
Debug.Trace(bodyWeight)
</source>
</source>

Revision as of 20:22, 19 April 2017

F4SE Member of: ActorBase Script

Returns this actors BodyWeight information.

Syntax

BodyWeight Function GetBodyWeight() Native

Parameters

None.

Return Value

The BodyWeight for this actor.

Examples

ActorBase PlayerBase = Game.GetPlayer().GetActorBase()

ActorBase:BodyWeight bodyWeight = PlayerBase.GetBodyWeight()
Debug.Trace(bodyWeight)

Notes

None.

See Also