Hello,
I started working on a third person game, when adding some foliage and water bodies my 3rd person character (BP_ThirdPersonCharacter) stopped spawning and I get the following results:
And this has worked before.
I searched for an answer but the answers I have found are:
The Maps & Modes settings are incorrect - seems to be fine in my game.
There is something blocking the BP_ThirdPersonCharacter from spawning - I don’t see anything that can block it and I have moved the begin play multiple times to different places.
The spawn is too far from the 0,0,0 of the map - The begin play is near the 0,0,0 and it I did spawn before.
Hey, I do have player start and it is above ground, but for some reason it doesn’t use it and doesn’t even spawn the player (you can see in in the first image there is no BP_ThirdPersonCharacter).
This is the 0,0,0 location (my player start is not in 0,0,0)
Have you modified the Game Mode spawning functions?
If memory serves, the GM’s “pawn spawning” doesn’t spawn if there’s collision. This is to prevent spawning characters inside geometry…no character class listed in outliner (couldn’t spawn it). You do get a camera via the Camera Manager though. This is what I’m seeing.
GM attempts to spawn, can’t do to collision, the camera manager deploys camera.
I see this all the time when testing multiplayer and forget to toggle back to using player starts.
Create a new level (Basic template), set the GM and give it a go.
Here’s what happens if I don’t use Default Player Starts when testing MP.
Both or just one of the players aren’t spawned, CM spawns its own camera…
Ok, so when I tried to spawn it there was nothing around but now I though, maybe it doesn’t like the foliage or something so I just put the spawn in the air and it did work, but for some reason the it also desapwn when near something. (before the problem I had the same foliage and map and it worked fine).
Also currently there is no death or life or damaged implemented so it’s not like I added something that makes it desapwn (at least not on purpose).
I also created a new map and everything seems to work fine there (didn’t change any of the settings).
It seems like it is related to the collision but I am not sure what or why.
Also thank you for the help, I am new to Unreal and Game development and you are really helping me out
I did some testing and it looks like when near the landscape the BP_ThirdPersonCharacter desawn, if I put the player on a geometry or other object in the air (if it gets too close to the landscape it despawn) it is working fine.
Still trying to figure out why
Ok. so I managed to figure out the landscape was not the problem, it was the height, as I managed to put myself on a tall mounting, and I figured out for some reason my KillZ had changed to be high. I changed it back to my original value and it fixed it. Rev0verDrive, thank you for the help.