HasFormTrait
From GECK
A function added by the pp NVSE Plugin.
Contents
Description
FormTraits are a more specialized version of Auxiliary-Variable variables that support nested arrays. Traits can be loaded directly onto forms when the game starts through Devkit, and they're especially useful for modification systems. linkedForm, linkedKey and Priority are all optional. linkedKey is mainly used if you want to have a linkedForm that can have multiple different values depending on the key.
Syntax
(variable) HasFormTrait Index:int parentForm:ref Key:string linkedForm:ref linkedKey:ref Priority:int
Example
if eval HasFormTrait weapNV9mmPistol "MoveNode" let sString := GetFormTrait 0 weapNV9mmPistol "MoveNode" endif
TriatTypes | Description |
---|---|
(-1) | Trait does not exist |
0 | float |
1 | reference |
2 | string |
3 | array |
Notes
- Traits remain valid for the session, and behave like the Temporary-Public class "*_" in aux variables.