/** * @brief Runs a function previously set up with event_runStart. */ int event_runFunc( unsigned int eventid, const char *func, int nargs ) { Event_t *ev; ev = event_get( eventid ); if (ev == NULL) return 0; return event_runLuaFunc( ev, func, nargs ); }
/** * @brief Runs the Lua for an event. */ int event_runLua( Event_t *ev, const char *func ) { event_setupLua( ev, func ); return event_runLuaFunc( ev, func, 0 ); }