Destroy on Event LPK_DestroyOnEvent.cs

This component can be added to any object to cause it to destroy specified target(s) upon receiving a specified event.

Suggested use:

Add to the target component to easily destroy it on receiving event. Alternatively, add to any component (an event manager perhaps) to destroy set targets on specified events.

Examples found in: Project 2

Components
Property Type Description Default Value
Component Properties
Destruction Targets Array of Objects Game object(s) to destroy on receiving event. Owner
Event Receiving Info
Event Trigger LPK Event Object Which event will trigger this component's action. None
Game Object Destroyed Event Sending Info
Event LPK Event Object Event to dispatch when conditions are met:
  • When the object(s) get destroyed.
None
Event Sending Mode LPK Event Sending Mode Who receives the event sent info when input is given from the input device. OWNER = only send to components on the same game object. ALL = send to all game objects. TAGS = send to specified tags. TAGS
Event Sending Mode - TAGS
Tags Array of Tags Which tags will receive this event. 0
Debug Properties
Print Debug Info Boolean Toggle console debug messages. False
Label String Notes for the user about this component. This does nothing to the game or build. None