ID:165629
Nov 21 2006, 11:49 am
|
|
Okay idk if this should be under the code problems or this but um, here goes I made an arena for fighting in and i have a verb for watchers to see arena without interfering, but if they are too far away from the loc i want to send the eye too it will give them a black screen. Any way I can change that or isnt it possible?
|
Copyright © 2024 BYOND Software.
All rights reserved.
What you want to do is set client.perspective=EYE_PERSPECTIVE. This makes it so that the calculations are done from the view of the eye.
Keep in mind that if you decide to use EDGE_PERSPECTIVE, you may get problems if you constantly use EYE_PERSPECTIVE. When players get near the edge and the eye stops centering around them, any obstruction with opacity set will be calculated from the point of view of the eye. If you've got a maze with lots of opaque walls or pretty much anything remotely complex, when you move behind the wall the eye doesn't change and your mob goes invisible. This is the reason that MOB_PERSPECTIVE exists.
You want to switch between EYE_PERSPECTIVE and MOB_PERSPECTIVE accordingly.
The suffix of |EDGE_PERSPECTIVE turns the EDGE_PERSPECTIVE setting on as well. Remove it if it's annoying.