NPC postion

Hi, I have some different level in my game, there is a main level and some houses which are also levels, and i want my NPCs can enter in the houses with a certain position. I wan’t to tell to unreal : this character is on this level at this position. Like in skyrim for example. Some of you have advices to help me ?

Thanks

theres a ton of posts on this already so im not going to go into detail here, but the basic idea is that for each door you would have a set location in the corresponding level. so when you approach the door actor to enter the house you would get the location you want to be in the other level and save that value in the game instance. then when the new level loads you get the value from the game instance and set the players location accordingly. this could also be done with player starts.

dont know if it helps but but below are some example scripts for a tutorial on this i was working on. the transitioner would be the door actor which has variables for the location to spawn in the next level and a variable for the level to open. the GM_leveltransition is the game mode where on begin play we search for the location to place the character.

Thank you, I will continue to search with what you gave me :slight_smile: