ID:261578
 
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?
Green Lime wrote:
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?

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
In response to Lummox JR
Lummox JR wrote:
Green Lime wrote:
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?

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

Of course! thanks man I overlooked that. Limey beans sends his thanks.
In response to Lummox JR
Lummox JR wrote:
Green Lime wrote:
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?

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

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.