Greeny Beans here. I never really used the client.eye before but I have started to try. I was trying to make a camra and a tv so when you clicked the record verb on the camra and then went to the tv it would change the eye to that camra. The code is bellow.
camra
parent_type=/obj
icon='camra.dmi'
density=1
verb/record()
set src in view(1)
usr:camra=src
tv
parent_type=/obj
icon='tv.dmi'
density=1
verb/watch()
set src in view(1)
if(usr:camra!=null)
usr:client:eye=locate(usr:camra:x+3,usr:camra:y,usr:camra:z)
else
usr << "Camra not turned on."
As you can see Im setting that camra to a var in the usr. And then when I goto the tv if that var is not null it runs the change in client.eye. Now when I click record and then when I click watch it brings up a black screen. Any ideas?
ID:261578
Jul 25 2002, 6:13 am
|
|
In response to Lummox JR
|
|
Lummox JR wrote:
Green Lime wrote: Of course! thanks man I overlooked that. Limey beans sends his thanks. |
In response to Lummox JR
|
|
Lummox JR wrote:
Green Lime wrote: Before client.perspective was put in, this was a real tough nut to crack. I managed to do so in MLAAS, and finally ironed it all out, just days before they added it. Trust me, it wasn't fun. |
Visibility is still limited to the client's mob, so if you're too far out of range, you'll see nothing. There's a var called client.perspective that will set it to the eye object's visibility instead.
Lummox JR