This wiki is archived and useful information is being migrated to the main bzflag.org website
Init
From BZFlagWiki
Revision as of 19:35, 10 July 2011 by Allejo (Talk | contribs) (Added some information on the new plugin loading for 2.4)
Code Example[edit]
void SAMPLE_PLUGIN::Init ( const char* /*commandLine*/ ) { bz_debugMessage(4,"SAMPLE_PLUGIN plugin loaded"); return 0; }
Functions[edit]
The Init function is required for all plugins 2.4 and higher. This function replaces the bz_Load function. In this function all debug messages, events, map objects, and slash commands are registered. Available functions for this are as follows:
More information on this function can be found on the BZFS_API_2.4_Upgrade page.