Difference between revisions of "SetScale"
Jump to navigation
Jump to search
imported>Bnesmith |
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Syntax: | ==='''Syntax:'''=== | ||
SetScale float | RefID.SetScale float | ||
Example: | ==='''Example:'''=== | ||
SetScale 1.5 | SetScale 1.5 | ||
Sets the scale of the calling object to the specified amount: 1.0 being "normal size", 2.0 being twice normal size, etc. | Sets the scale of the calling object to the specified amount: 1.0 being "normal size", 2.0 being twice normal size, etc. | ||
BrahminRef.SetScale 0.9 | |||
Sets the scale of BrahminRef to 90% of that which it used to be. | |||
==='''Notes:'''=== | |||
*SetScale can be used to pseudo-disable items without preventing OnLoad block from loading by using 0 as its parameter | |||
*When called on dead actors (tested from console), the value returned by GetScale will update but the size of the actor will stay the same. [[ResurrectActor]] will cause the size of the actor to update, as will calling [[Disable]] followed by [[Enable]]. | |||
*The "weight" of Actors will update with their scale, i.e. actors at scale 0.5 will be easier to carry than actors at scale 2.0. | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Functions (GECK 1.1)]] |
Latest revision as of 13:14, 15 August 2009
Syntax:[edit | edit source]
RefID.SetScale float
Example:[edit | edit source]
SetScale 1.5
Sets the scale of the calling object to the specified amount: 1.0 being "normal size", 2.0 being twice normal size, etc.
BrahminRef.SetScale 0.9
Sets the scale of BrahminRef to 90% of that which it used to be.
Notes:[edit | edit source]
- SetScale can be used to pseudo-disable items without preventing OnLoad block from loading by using 0 as its parameter
- When called on dead actors (tested from console), the value returned by GetScale will update but the size of the actor will stay the same. ResurrectActor will cause the size of the actor to update, as will calling Disable followed by Enable.
- The "weight" of Actors will update with their scale, i.e. actors at scale 0.5 will be easier to carry than actors at scale 2.0.