Place these zones in areas of your map you do not wish your player to go. This is good for open maps. If the player remains in the restricted area, the player's health will start to decrease by 1 point every 1 second (configurable). Additionally a sound effect will play whenever the player enters the restricted zone.
Text will display in red: "Leaving Mission Area".
- Assign this script to a Text Zone
- Assign a sound effect to Sound 0 (optional)
You can now change the duration at work health starts to reduce. Open the script and change the value of hurt_delay[e]. Its currently set to 1000 to remove 1 health every 1 second.
You can change the text that is displayed by changing the text in the script that reads "LEAVING MISSION AREA". Just make sure to keep the quotation marks.