Background for Skyrim SE
Member of the Form script
voidfunctionSetWeight(floatweight)Native

Description

Wiki Description

Sets the weight of this form. (This function requires SKSE)

Documentation Comment

sets the weight of the form


Caveats

CK Wiki - Notes

  • Does not work on forms that do not have weight (eg Quest aliases flagged as "Quest Object")
  • This function is performed on a base Form, meaning changes will not save. Edits can maintained via a maintenance setup or something similar.

Parameters

floatweight

CK Wiki Description

the new weight of the form


Examples

Gold001.SetWeight(1.0)
Debug.Trace("These coins really are worth their weight in gold!")

Auto-Generated Example

float myFloat__weight

myForm__toCallFunctionOn.SetWeight(myFloat__weight)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.