08-02-2011, 22:29
Hello, In my mod, I am trying to make a menu to give me a weapon. In the Basic Quickmessage Menu Thread I am stuck on the part where it says:
Quote:Now all we have to do is load this .gsc file so open _load.gsc and on the init() function there are a lot of threads, just add this to it:I found the _load.gsc file, but I don't know where to paste. And for the very last step, what is a zone source?
Code:
level thread maps\mp\gametypes\mod_menu::init();
and your responses will work!
You can open the menu with this:
Code:
self openMenu( game["SCRIPT NAME HERE"] );
as I told you above. Just open it whenever you want, for example onPlayerSpawned()
COMPILING IT
The .menu files need to be in a FastFile so we add the following line to our zone source
Code:
menufile,ui_mp/scriptmenus/THE NAME YOU CHOOSE.menu
and your menu should be good to go!
Add me on steam! otterm