Home > Working with SGWorld > ISGWorld > OnObjectAction
This event occurs when a specified action (e.g., fly to an object) is performed on an object.
JavaScript |
|
OnObjectAction( ObjectID, Action) |
C# |
|
void OnObjectAction( string ObjectID, IAction6 Action) |
C++ |
|
HRESULT OnObjectAction( BSTR ObjectID, IAction6* Action) |
Parameters
ObjectID
The ID of the object on which the action was performed.
Action
An IAction6 representing the action that is performed on a TerraExplorer object. The following are possible values:
·
AC_FLYTO = 0
Fly to the object operation was started.
·
AC_CIRCLEPATTERN = 1
Circle object operation was started.
·
AC_OVALPATTERN = 2
Oval pattern around the object operation was started.
·
AC_LINEPATTERN = 3
Line pattern around the object operation was started.
·
AC_ARCPATTERN = 4
Arc pattern around the object operation was started.
·
AC_FOLLOWBEHIND = 5
Follow behind the object operation was started.
·
AC_FOLLOWABOVE = 6
Follow above the object operation was started.
·
AC_FOLLOWBELOW = 7
Follow below the object operation was started.
·
AC_FOLLOWRIGHT = 8
Follow from the right of the object operation was started.
·
AC_FOLLOWLEFT = 9
Follow from the left of the object operation was started.
·
AC_FOLLOWBEHINDANDABOVE = 10
Follow from behind and above the object operation was started.
·
AC_FOLLOWCOCKPIT = 11
Follow from cockpit operation was started.
·
AC_FOLLOWFROMGROUND = 12
Follow the object from the ground point operation was started.
·
AC_STOP = 13
The object was stopped being played (i.e., after a fly to
operation).
·
AC_JUMP = 14
Jump to the object operation was started.
·
AC_DELETE = 15
The object was deleted.
·
AC_EDIT_FINISHED = 16
The object was finished being edited.
·
AC_OBJECT_ADDED = 17
An object was added to TerraExplorer.
·
AC_PLAY = 18
Play operation for the object was started.
·
AC_EDIT_STARTED = 20
Edit operation for the object was started.
·
AC_WAYPOINT_REACHED = 22
A dynamic object reached a way point, or the camera reached a route
waypoint.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.