Camara_Computer()
icon='Icons/Objs1.dmi'
icon_state="Database"
DblClick(usr.client.eye != usr)
usr.client.eye = locate(5,5,1)
usr.client.perspective = EYE_PERSPECTIVE
I had a go but it isnt directly cenected to the camara just is on the spot where the camera is also it has a bug and isnt a good code how could i improve it and make it also conect to the camera no matter where that camera is.
Chrislee123 programmed:
This is invalid syntax, and it shows you don't really understand the DM language very well. You ought to read this.
It is kind of difficult to understand what you mean here and what is the specific problem with your code. However, I can reply to this part:
You could use the tag variable and the locate() proc in order to do this. Give every camera obj a unique tag variable (through the map editor's Instance Editor), then give the computer a variable that contains the tag(s) of the camera(s) it can access. The cameras (and their location) can then be dynamically found by your code that has access to the computer.