Cipscis Posted July 27, 2009 Share Posted July 27, 2009 Just to clarify on the difference between implicit reference syntax and explicit reference syntax:When calling a reference function with explicit reference syntax, the reference that the function should be called on is specified explicitly. For example:player.AddItem Caps001 3When calling a reference function with implicit reference syntax, the reference that the function should be called is not specified explicitly, which implies that the reference function should be called on the scripted reference. For example:AddItem Caps001 3Basically, when calling a reference function on the scripted reference, implicit reference syntax should be used, whereas when calling a reference function on a reference other than the scripted reference, explicit reference syntax should be used. When calling a reference function with explicit reference syntax, you'll either be "hard-coding" the reference by using its EditorRefID (for persistent references only) or by storing its RefID in a "ref" variable after getting it from somewhere (probably as the return value of another reference function called implicitly on the scripted reference). For example, GetContainer will allow reference functions to be called on an actor via an item in their inventory, whereas GetLinkedRef will allow reference functions to be called on the scripted reference's "Linked Reference". Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts