diff options
author | William Miller <william-millennium@hotmail.com> | 2024-07-12 17:45:49 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-12 22:45:49 +0200 |
commit | f586107e62dc0dfa09f1b08cbf418d31d0346886 (patch) | |
tree | c0a8d2db3e0ebf6c23801b5e2460e2d3c0873720 /Northstar.CustomServers/mod/scripts/vscripts | |
parent | 52e007ac0634ee5dd9376bd82ae76af6fd5f44d7 (diff) | |
download | NorthstarMods-1.26.3-rc3.tar.gz NorthstarMods-1.26.3-rc3.zip |
Change `IsValid()` check to `EndSignal()` (#820)v1.26.3-rc3v1.26.3
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut index ffefc3b4..016097f2 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut @@ -65,10 +65,9 @@ void function SetupPlayerMenuChallenges( entity player ) void function SetupChallenges_Threaded( entity player ) { + player.EndSignal( "OnDestroy" ) + WaitFrame() - - if ( !IsValid( player ) ) - return Remote_CallFunction_UI( player, "SCB_SetCompleteMeritState", 0 ) Remote_CallFunction_UI( player, "SCB_SetEvacMeritState", 4 ) //4 tells RUI to hide it |