This commit is contained in:
AzaezelX 2020-10-05 15:50:45 -05:00
parent 09f9b5351c
commit 7d63f114fa
3 changed files with 34 additions and 34 deletions

View file

@ -33,7 +33,7 @@ function ExampleModule::onDestroy(%this)
function ExampleModule::initServer(%this)
{
//This script contains our ExampleGameMode logic
exec("./scripts/ExampleGamemodeScript.cs");
%this.queueExec("./scripts/ExampleGamemodeScript.cs");
}
//This is called when a game session server is actually created so the game may be played. It's called
@ -74,13 +74,13 @@ function ExampleModule::initClient(%this)
//client scripts
//Here, we exec out keybind scripts so the player is able to move when they get into a game
exec("./scripts/default.keybinds.cs");
%this.queueExec("./scripts/default.keybinds.cs");
%prefPath = getPrefpath();
if(isFile(%prefPath @ "/keybinds.cs"))
exec(%prefPath @ "/keybinds.cs");
exec("./scripts/inputCommands.cs");
%this.queueExec("./scripts/inputCommands.cs");
}
//This is called when a game session client successfuly connects to a game server.