Quote: "I can't see your scripts, so I can't offer much more help than that. I also don't know what it is that happens when you try to view the camera. "
I should have posted my scripts to start with
On the monitor entity I have this script:
:state=0,plrdistwithin=60,SCANCODEKEYPRESSED=50:activateifused=1,state=1
:state=1,plrdistwithin=60,SCANCODEKEYPRESSED=50:activateifused=1,state=0
I realise that I don't really need two lines of code to do the same thing I was just trying to figure out why I couldn't get it working. In the ifused property of this entity I have the name of the camera entity 'camera001'
On the camera entity I have this script:
:state=0:makecamera=CellCam,setcamfov=CellCam 90,bindcamtoentity=camera001,State=1
;View security camera when activated
:state=1,activated=1:viewcam=CellCam,state=2
;Return to player view when activated again
:state=2,activated=1:viewcam=0,state=1
What happens when I walk up to the monitor and press 'm'(scancodekeypressed=50) is that it doesn't go to the new camera and I lose control of the mouse. That is I can still walk around my level with 'wasd' but I can't use the mouse to look around, I'm locked into facing the direction I was facing when I pressed 'm'.
Edit:
Removing the second line in the first script so it just reads:
plrdistwithin=60,SCANCODEKEYPRESSED=50:activateifused=1
that the bizarre mouse thing doesn't happen.