Core Help Root: Subsystems: Events: Sending


Sending events is quite simple, from a programming point of view. There is no registration or initialization involved in creating an event--they exist as they are sent.

The method used to Send an Event is:

relay.send_event(event, @args)
Used to send an event. The object relay is the broadcaster of the event (usually the current object's location). Any arguments beyond the event name are sent to the receiving event handler.

An example sending the event 'combat to the current object's location:

.location().send_event('combat, target_obj, with_weapon)


Registering | Hooks | Sending | Receiving | Standard


the Cold Dark