- Home /
Switching Between Interiors and Exteriors of houses
Basically at the moment i have a main scene which consists of a few mountains and some buildings, On one of the buildings i have an interior linked up to it using the function
OnTriggerEnter(){
Application.LoadLevel("HouseInterior")
}
so basically you can enter the house fine with no problems but when your try and leave the house you are teleported back to the original spawn point. I've tried looking on the internet for various solutions to this but none will work. Although i did find something but all it did was set the spawn point of the player and there was no way to toggle it. Any help will be really appreciated thanks :).
Answer by Hamesh81 · May 25, 2013 at 03:57 PM
Either you can load up a third level after you exit the house, where you set the spawn point to just outside the house; or instead of changing scenes you can just load the interior dynamically and position the player into it. If you're not sure what I mean here, Google "portal".
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Blender Animations not working properly. 1 Answer
What is wrong with this? 1 Answer
Make code execute for a specified time? 1 Answer
Help calling a code in C# script 1 Answer