فهرست منبع

Merge pull request #1194 from Areloch/onClientMissionLoadedCallback

Adds a callGamemodeFunction invoke for when the client is done loading the mission so the gamemode can do stuff once the player is done loading, but before fully connecting/spawning in
Brian Roberts 1 سال پیش
والد
کامیت
e68643c6ce
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Templates/BaseGame/game/core/clientServer/scripts/client/levelDownload.tscript

+ 2 - 0
Templates/BaseGame/game/core/clientServer/scripts/client/levelDownload.tscript

@@ -274,6 +274,8 @@ function sceneLightingComplete()
    
    onPhaseComplete("STARTING MISSION");
    
+   callGamemodeFunction("onClientMissionLoaded");
+   
    // The is also the end of the mission load cycle.
    commandToServer('MissionStartPhase3Ack', $MSeq);
 }