RegisterForModEvent - Form

Revision as of 14:00, 1 July 2013 by imported>Jbezorg (Created page with "Registers a custom event callback for given event name. Registrations have to be refreshed after each game load. Examples: RegisterForModEvent("myCustomEvent", "MyModEventC...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Registers a custom event callback for given event name. Registrations have to be refreshed after each game load.

Examples:

 RegisterForModEvent("myCustomEvent", "MyModEventCallback")

Event signature of custom event callbacks:

 Event MyModEventCallback(string eventName, string strArg, float numArg, Form sender)
 endEvent