mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
By default this list of variables would be:
%this.spawnClass = "Camera";
%this.spawnDBType = "CameraData";
%this.spawnDataBlock = "Observer";
%this.playerSpawnGroups = "PlayerSpawnPoints PlayerDropPoints";
%this.spawnPoint = "";
%this.spawnLocation = "0 0 0";
Also adds several callbacks so that these values can be overridden by modules and gamemodes, kicked off from the %client.spawnControlObject(); command :
callOnModules("setSpawnObjectType", "Game", %this);
callGamemodeFunction("setSpawnObjectType", %this);
callOnModules("setSpawnPoint", "Game", %this);
callGamemodeFunction("setSpawnPoint", %this);
callOnModules("onPostSpawn", "Game", %this);
callGamemodeFunction("onPostSpawn", %this);
This is to ensure that a game mode can supersede modules, but even modules can dictate spawn behaviors for minimalist implementations and drop-in interop support
|
||
|---|---|---|
| .. | ||
| game | ||
| source | ||
| BaseGame.cmake | ||
| cleanShaders.bat | ||
| cleanShaders.command | ||
| CMakeLists.txt | ||
| DeleteCachedDTSs.bat | ||
| DeleteCachedDTSs.command | ||
| DeleteDSOs.bat | ||
| DeleteDSOs.command | ||
| DeletePrefs.bat | ||
| DeletePrefs.command | ||
| thumb.png | ||