GetEditorPosition

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the cell, position and rotation of the calling reference, where it was originally placed in the GECK editor. The function outputs the X/Y/Z position and rotation values into the 6 Script Variable arguments, whereas the cell is the return value of the function.

  • If the calling reference was not placed in the editor, the function returns 0.

Syntax

[help]
(originCell:form) reference.GetEditorPosition outPosX:ScriptVar outPosY:ScriptVar outPosZ:ScriptVar outRotX:ScriptVar outRotY:ScriptVar outRotZ:ScriptVar

Example

set rOriginCell to someRef.GetEditorPosition fPosX fPosY fPosZ fRotX fRotY fRotZ 

See Also