How do you restrict player resting to a specific location on the map?
BishopB
Member Posts: 8
Hi, I know how to click the "no rest" checkbox in area properties (which disables resting in that entire area). But I've also seen modules where resting is only prohibited in certain areas of the map. (Such as modules that only allow resting inside of bedrooms). Can anyone show me how to do this? Thanks.
0
Comments
There is a snag with area and trigger OnEnter scripts - they fire again when a saved game is loaded. You can detect this, though. In the OnClientEnter script then in the area or trigger OnEnter script
This might seem complicated, but as long as you use generic scripts, you only have to write this code once to cover every eventuality. Of course, there might be cases where you need to code to fire when loading a saved game, but these are rare, at least for single player.