Chained dot syntax

From GECK
Jump to: navigation, search

Chained dot syntax is a new scripting feature added by xNVSE 6.1.0.


Before xNVSE 6.1.0, a dot could only be used on a local ref variable or a reference form. Now, inside NVSE expressions, you can use dot syntax on the result of functions, on ref variables from external quests or references and array elements.

Examples

eval MyQuestScript.rMyRefVar.FakeScriptEvent "OnClose" Player
eval GetSelf.SetActorValue 1000 ; GetSelf is a function that returns a reference - now valid!
let sName := GetName (aListOfRefs[100].GetBaseObject) ; array element must contain ref

See Also