Place invisible walls in areas you do not wish the player to go.
If the player tries to pass the invisible wall, a message will prompt saying that "You Cannot Go That Way".
This script is now an entity!
Location: entitybank\Purchased\Teabone\Invisibile Wall
When you select the invisible wall to place in your scene, you will not actually be able to see the wall. There will be a white arrow to help you locate it once placed on your map. You can scale the invisible wall by clicking on the arrow and clicking "scale". You can also rotate the invisible wall by rotating the white arrow.
This script cannot_go_that_way.lua requires utillib.lua to work. You should have this script by default.
Hi Corrosion, the raycasting between the player and entity will not work with the stock Invisible Wall. Because the entity must not be using Hide(e). This entity provided will return raycasting at ANY part of the entity no matter how large or small it is reshaped; given the player is facing the direction of it. This means you could stretch it a mile across and the message will still display at both ends; As opposed to just simply assigning a radial check with an Invisible Wall which would only display the text within the core, outward. This script uses raycasting and not just player distance.
Hi everyone, this script has now been updated. It is now an entity! You can locate it in your entitybank in the folder called Teabone. Its called "Invisible Wall". When you place this entity in your map it will come pre-scripted. You won't be able to visibly see the wall in your map, however there will be a white arrow pointing to it. You can scale and rotate this arrow to adjust the invisible wall.
This update was made so that ANY part of the invisible wall the player bumps into will now display the text "Cannot Go That Way" as opposied to only its center, which was previously the case.