NodeTrigger Class
Interface for node trigger handling. See also the UnigineScript analog.
To use this class, include the UnigineNodeTrigger.h file.
NodeTrigger Class
Members
NodeTrigger ()
Constructor. Creates a new trigger node.void setPositionCallback (CallbackBase * callback)
Sets a pointer to a callback to be fired when the trigger node has been changed.Arguments
- CallbackBase * callback - Callback pointer. The callback arguments must be (NodeTriggerPtr,...).
const char * getPositionCallbackName ()
Returns the name of callback function to be fired on changing the trigger node position. This function is set by using the setPositionCallbackName() function.Return value
World script function name.void setPositionCallbackName (const char * name)
Sets a callback function to be fired when the trigger node position has been changed. This function should take a NodeTrigger, which fires the callback, as the first argument.Arguments
- const char * name - World script function name.
const char * getEnabledCallbackName ()
Returns the name of callback function to be fired on enabling the trigger node. This function is set by using the setEnabledCallbackName() function.Return value
World script function name.void setEnabledCallback (CallbackBase * callback)
Sets a pointer to a callback to be fired when the trigger node is enabled.Arguments
- CallbackBase * callback - Callback pointer. The callback arguments must be (NodeTriggerPtr,...).
void setEnabledCallbackName (const char * name)
Sets a callback function to be fired when the trigger node is enabled. This function should take a NodeTrigger, which fires the callback, as the first argument.Arguments
- const char * name - World script function name.
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)