User Tools

Site Tools


modding:function:objfireevent

Discuss this page on this pages TalkPage

objFireEvent

See objFireEvent at Xelerus

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.

Example

(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

modding/function/objfireevent.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1