24.06.2012, 23:17
Hi.
Although I am unable to recommend how to make an object invisable using the material function, an alternative solution would be to use SetPlayerWorldBounds.
This will basically prevent the player from running outside of a rectangular/square area.
It will also allow players to shoot outside the area, while objects may not provide this.
You could also make your own version of the function by checking the player's coordinates against the coordinates of a square/rectangular area, by using a timer.
Although I am unable to recommend how to make an object invisable using the material function, an alternative solution would be to use SetPlayerWorldBounds.
This will basically prevent the player from running outside of a rectangular/square area.
It will also allow players to shoot outside the area, while objects may not provide this.
You could also make your own version of the function by checking the player's coordinates against the coordinates of a square/rectangular area, by using a timer.