Arguments used with the InteractionComponent.onTriggerPrimary event.
InteractionComponent.onTriggerPrimary
//@input Component.InteractionComponent interactionComponent// Subscribe to the onTriggerPrimary eventvar onTriggerPrimaryEvent = script.interactionComponent.onTriggerPrimary.add(function(triggerPrimaryEventArgs){ print("Trigger Primary!"); });// Unsubscribe from the onTriggerPrimary eventscript.interactionComponent.onTriggerPrimary.remove(onTriggerPrimaryEvent); Copy
//@input Component.InteractionComponent interactionComponent// Subscribe to the onTriggerPrimary eventvar onTriggerPrimaryEvent = script.interactionComponent.onTriggerPrimary.add(function(triggerPrimaryEventArgs){ print("Trigger Primary!"); });// Unsubscribe from the onTriggerPrimary eventscript.interactionComponent.onTriggerPrimary.remove(onTriggerPrimaryEvent);
Protected
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
other
Arguments used with the
InteractionComponent.onTriggerPrimary
event.Example