onTerraExplorerMessage Event

Fires when a message object is about to be triggered.

SGWorld.attachEvent(“onTerraExplorerMessage”, myOnTerraExplorerMessage);

function myOnTerraExplorerMessage(msgNode, srcNode)

 

Parameter

Description

msgNode

An SGNode object of type sgNodeTypeMessage that describes the message that is about to be triggered

srcNode

The node object from which the message was triggered (of type SGNode).

Remarks

Skyline Globe Control can notify when a message object is about to be triggered. The user can then either handle the message or let the Skyline Globe Control handle it. To indicate to the Skyline Globe Control that the user handled the event and no further processing is needed,  true must be returned from the event handler function.