Difference between revisions of "SetWeight - ActorBase"
Jump to navigation
Jump to search
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) ...") |
imported>Sagitarius22 |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
'''SKSE Member of:''' [[ActorBase Script]] | '''SKSE Member of:''' [[ActorBase Script]] | ||
Sets the body weight of this actor. (This function requires SKSE) | |||
== Syntax == | == Syntax == | ||
Line 19: | Line 19: | ||
== Notes == | == Notes == | ||
*This is a function performed on an ActorBase, meaning all Actors derived from this will have this weight. | *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. | *This functions requires [[QueueNiNodeUpdate - Actor|QueueNiNodeUpdate]] to be called for the changes to be visible. | ||
== Examples == | == Examples == |
Latest revision as of 11:38, 23 September 2012
SKSE Member of: ActorBase Script
Sets the body weight of this actor. (This function requires SKSE)
Syntax[edit | edit source]
Function SetWeight(float weight) native
Parameters[edit | edit source]
- weight: The amount to set the actor's weight to.
Return Value[edit | edit source]
None
Notes[edit | edit source]
- This is a function performed on an ActorBase, meaning all Actors derived from this will have this weight.
- This functions requires QueueNiNodeUpdate to be called for the changes to be visible.
Examples[edit | edit source]
ActorBase pActorBase = Game.GetPlayer().GetActorBase()
pActorBase.SetWeight(100.0)
; Game.GetPlayer().QueueNiNodeUpdate()