KingShelby Posted September 11, 2011 Share Posted September 11, 2011 I'm working on a mod where the player will be able to travel from an exterior area to a interior area if they have already marked the interior as a returnable spot. I have it scripted and it works, but there is no time differentiation and they arrive there in mere seconds. I'm looking to make this more realistic and have time pass same as it would for a normal exterior fast travel. More about the mod:The whole mod involves a backpack that items can be added to and removed from, ex:canteen,first aid kit. I decided to add some custom items that the play will have a random chance of acquiring when finding it. One of these items is a map book that allows the player to set map markers anywhere and return to them later. More about this aspect (book) of the mod:I have the book fully functional and it works fine. Exterior areas are marked on the map with map markers and the player may return to them at any time, unless they are in an interior (did this to go along with the vanilla game). If the player wishes to mark an interior then the location is noted and upon leaving a map marked is added to the exiting door. The player can fast travel to the exterior door location or select from the book to travel to the interior noted location. Everything works fine minus the fact that if you travel from any location directly to an interior marked location then there is no time time differentiation. I'm not looking for that instant teleportation effect I want it to show that it took some time to get there. I'm simply trying to save myself several hours of testing just to figure out one most likely simple solution. A couple of attempts and I'm scratching my head.I'm sure it may involve GetDistance which would be object.GetDistance Player (So it is always correct)GetCurrentTime Well you get the idea, I need to manipulate time to make the distance traveled actually take some time. Link to comment Share on other sites More sharing options...
Hickory Posted September 12, 2011 Share Posted September 12, 2011 Interiors and exteriors are contained in their own little universes (so to speak), so GetDistance is meaningless between them. You would have to painstaking set up variables for every possible location switch. You could always use a random time based on just a few location variables. Link to comment Share on other sites More sharing options...
KingShelby Posted September 12, 2011 Author Share Posted September 12, 2011 I was thinking something along the same lines, seeing how they are in different cells. I was hoping someone had already figured out some sort of base for the fast travel. I'll try some in game tests and see if I can come up with some sort of base for the distance\time it takes to travel from point A to B. Then I may be able to use the exterior map markers at the entrance as a base for the mod. If I come up with anything decent i may post it back here in case someone else searches for the same thing in the future. Link to comment Share on other sites More sharing options...
vivanto Posted September 19, 2011 Share Posted September 19, 2011 From what I gather, you already have specific exterior entrance markers associated to your interior destinations, so using getDistance on them shouldn't be a problem. Once you got the distance, you can estimate a travel duration based on TimeScale, then convert the travel duration to days and add it to the GameDaysPassed global variable. Link to comment Share on other sites More sharing options...
Recommended Posts