That screenshot looks like a very old version of UE, perhaps you already solve it, I´m developing same custom ¨spawnpoint¨ if you like… What I learned is:
(try it in this order)
-
Collision override be sure is set to “Always spawn, ignore collision”, otherwise will likely fail if something is colliding destination, and I think If that happens, it will set 0,0,0.
-
If you are spawning players in the level “BeginPlay” that will not work, or will work for the first time only, if you need to respawn will not work. Perhaps you could try another event to spawn the player? i’m wondering if your targetPoints are created at that moment, and perhaps that’s the reasson why you don’t have a location, because they are not created YET. My suggestion, create a HUD to spawn your player, this hud can be added to your controller, to decide when and where to be spawned (in your case randomly, but you could also provide a list of possible spawn points like battlefield…)
-
Are you already working in server-client game? Be sure you are assigning random and transform in server side only, if you are running 1 instance then it´s server, it should do what you expect.
-
SpawnActor → Owner does’t look right to have the spawn point, I usually assign there a controller, probably will not harm if you leave that.
I honestly think 1 and 2 will solve your problem.
Good Luck!