From b0b0cbfaef0d8750df4415ded2595aa046df9ee2 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sat, 3 Feb 2024 17:09:11 -0600 Subject: [PATCH] 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 --- .../game/core/clientServer/scripts/client/levelDownload.tscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Templates/BaseGame/game/core/clientServer/scripts/client/levelDownload.tscript b/Templates/BaseGame/game/core/clientServer/scripts/client/levelDownload.tscript index 665e3812e..c105e9d07 100644 --- a/Templates/BaseGame/game/core/clientServer/scripts/client/levelDownload.tscript +++ b/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); }