Difference between revisions of "SetHeight - ActorBase"
Jump to navigation
Jump to search
imported>Wafflesalot (Fix to the Example for accuracy.) |
imported>Wafflesalot (→Notes: Removed Note and added a new one.) |
||
Line 23: | Line 23: | ||
*To update the Actors size after running this function, the function [[QueueNiNodeUpdate - Actor|QueueNiNodeUpdate]] must be used. | *To update the Actors size after running this function, the function [[QueueNiNodeUpdate - Actor|QueueNiNodeUpdate]] must be used. | ||
* | * When animation driven, Running, Walking, Sneaking and Sprinting will all scale with the actor, for example if the actor is 0.5x their original size then they will move approximately half speed. | ||
== See Also == | == See Also == | ||
*[[ActorBase Script]] | *[[ActorBase Script]] | ||
*[[GetHeight - ActorBase]] | *[[GetHeight - ActorBase]] |
Revision as of 05:25, 1 March 2013
SKSE Member of: ActorBase Script
Sets the body height multiplier of this actor. (This function requires SKSE)
Syntax
Function SetHeight(float height) native
Parameter
- height - Sets the Actors body height multiplier.
Examples
;Increases the players size by 0.5x
Game.GetPlayer().GetActorBase().SetHeight(1.5)
Notes
- To update the Actors size after running this function, the function QueueNiNodeUpdate must be used.
- When animation driven, Running, Walking, Sneaking and Sprinting will all scale with the actor, for example if the actor is 0.5x their original size then they will move approximately half speed.