mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Reorganized the exec's for datablocks in module template file to be within the start/stop blocks
Tweaked example module script file to comply Moved ExampleGameMode script file to scripts/shared since client and server need access to the gamemode for logic to work
This commit is contained in:
parent
d7335a73e4
commit
4bb26bf96c
3 changed files with 4 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ function ExampleModule::onDestroy(%this)
|
|||
//This is called when the server is initially set up by the game application
|
||||
function ExampleModule::initServer(%this)
|
||||
{
|
||||
%this.queueExec("./scripts/server/ExampleGameMode");
|
||||
%this.queueExec("./scripts/shared/ExampleGameMode");
|
||||
}
|
||||
|
||||
//This is called when the server is created for an actual game/map to be played
|
||||
|
|
@ -25,7 +25,7 @@ function ExampleModule::onDestroyGameServer(%this)
|
|||
//This is called when the client is initially set up by the game application
|
||||
function ExampleModule::initClient(%this)
|
||||
{
|
||||
%this.queueExec("./scripts/client/inputCommands");
|
||||
%this.queueExec("./scripts/client/inputCommands");
|
||||
|
||||
//client scripts
|
||||
exec("./scripts/client/defaultkeybinds");
|
||||
|
|
@ -34,7 +34,7 @@ function ExampleModule::initClient(%this)
|
|||
if(isScriptFile(%prefPath @ "/keybinds"))
|
||||
exec(%prefPath @ "/keybinds");
|
||||
|
||||
%this.queueExec("./scripts/server/ExampleGameMode");
|
||||
%this.queueExec("./scripts/shared/ExampleGameMode");
|
||||
}
|
||||
|
||||
//This is called when a client connects to a server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue