Skip to content

Basic Implementation

Sora edited this page Jan 16, 2019 · 1 revision

Basic Implementation

You must have a global_key in your map. Check your main.xml, the first line, and add it. E.G: <table name="your map" global_key="YOURGLOBALKEY">

In order to initialize a gamemode within SkyLib, you need to add a hook inside of the LevelModule of your XML file. Your script has to be hooked here: lib/setups/gamesetup.

Inside of it, you can use the 2 functions below:

SkyLib:set_mod_key(SkyLibTest) -- The Global Key you specified in the main.xml is now a Global variable, do not use quotes!
SkyLib:init_by_gamemode("codzm")

And that's it! Your map can now fully use all of the COD Zombie class.

Clone this wiki locally