X-Base Bugtracking

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
000855xShunterGameScriptpublic2012-05-21 00:212012-05-21 22:16
Assigned ToxOR 
PlatformOSOS Version
Product Versionv0.2 
Target Versionv0.3Fixed in Versionv0.3 
Summary000855: Generic Event support for GameScripts
DescriptionPlease make it possible to send a generic event (data string or strings) to the admin interface from gamescripts and also to send data back TO the Gamescript so that we can easily implement new gamescript features to xShunter plugins.
TagsNo tags attached.
SVN revision
Attached Files

- Relationships

-  Notes
User avatar (0000449)
xOR (administrator)
2012-05-21 22:16

User avatar (0000450)
xOR (administrator)
2012-05-21 22:16
edited on: 2012-05-21 22:20

here's an example how to catch one of the existing events (vehicle crashes) via the custom event handling on a plug-in:

(in Load function)
registerEvent("GameScript.GameScriptMessageReceived", "OnGameScriptMessageReceived");

        public void OnGameScriptMessageReceived(IGameScriptMessageReceivedEventArgs e)
            if ((e.Type == GameScriptMessageTypes.Event) && (e.Name == "vehiclecrash"))
                _pluginInterface.Log(LogLevels.Warn, _identifier, string.Format("Oops! vehicle {0} of company {1} has crashed :-/", e.Table["vehicleid"], e.Table["company"]));

Copyright © 2000 - 2011 MantisBT Group
Time: 0.0835 seconds.
memory usage: 7,485 KB
Powered by Mantis Bugtracker