Discuss this page on this pages TalkPage
| Syntax | (objFireEvent obj event) → result of event |
|---|---|
| Arguments | obj: The spaceObject that has the event to be run. |
| event: The name of the event you want to run. | |
| Returns | Whatever the last run expression of the event returns. Nil if the event doesn't exist. |
| Category | event, spaceobject |
| Description | Runs any event on a spaceObject. |
(objFireEvent gPlayerShip "testEvent")
Tries to run the event “testEvent” on the player ship. If it doesn't exist (like for the default player ships) it returns Nil. Return to Functions list