EventOnLogout is not returning player controller

Hello i am trying to add a mechanic to my game
i want to when a player (client) quits game gamemode will spawn a chest in quitting players location

0I am using Event OnLogout node in gamemode blueprint it triggers when a player quits but exiting controller is unknown so i cant see exiting players items thats my problem



aa

I don’t know why OnLogout won’t give you the controller, but if they are ESCing into some sort of widget and then selecting “quit” to log out, maybe you can tie the function to the widget “quit” button.

yes but what if they alt+f4 or close from task manager

i find something when i print string the display name of exiting controller its printing MuzePC1 which is the right controller but i cant acces any variable of it

1 Like

oh okay i figured it out bcs gamemode in server i have to replicate my variable in playercontroller to the server

1 Like