FormTraits

From GECK
Jump to: navigation, search

The Form Trait interface is a utility added by the ppNVSE they function much like public Auxiliary-Variable from JIP LN, except all form traits are public, and can be accessed by any mod.

Properties

  • Form traits share a lot of the same properties with auxiliary-variables. One of the key features, is they can be loaded directly onto the form when the game starts with the use of Devkit. Framework mods can define new traits via a trait file inside the devkit folder, other mods can use these traits and assign them values from their own kit files.

Trait Files

  • Trait files can be put inside the Devkit folder.

Inside the trait file, you can define traits to be used by devkit like so:

Type: 40

 NameOfTrait: string, float, float
 HipNode: string, float, float

Here, we are defining a trait HipNode, that can be used on weapon forms. The trait takes a string for the first argument, and a float for the second and third arguments.

Script Functions