Download

Spawning weapon actors on players when they respawn

Hello,

Newbie here. I’m trying to make an online game where players have weapons. I want to make the weapon spawning something that is done on the server for security.

I am a bit confused about how I should structure this.

In my GameMode I can use Event OnPostLogin to spawn a new weapon every time a player joins. I then assign the weapon to the characters WeaponSocket. This gives the player character 0 a weapon, so only the server guy is getting a weapon. If I plug in that get character as number stuff neither of the players get a weapon.

How can I give my clients a weapon?

Thanks in advance