SetWeight - ActorBase
Revision as of 04:23, 10 May 2012 by imported>PurpleLunchbox (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ActorBase Script Returns the body weight of this actor. (This function requires SKSE) ...")
SKSE Member of: ActorBase Script
Returns the body weight of this actor. (This function requires SKSE)
Syntax
Function SetWeight(float weight) native
Parameters
- weight: The amount to set the actor's weight to.
Return Value
None
Notes
- This is a function performed on an ActorBase, meaning all Actors derived from this will have this weight.
- This functions requires QueueNiNodeUpdate - Actor to be called for the changes to be visible.
Examples
ActorBase pActorBase = Game.GetPlayer().GetActorBase()
pActorBase.SetWeight(100.0)
; Game.GetPlayer().QueueNiNodeUpdate()