Jump to content
Sign in to follow this  
xj45id

Switching user's view to security camera's

Recommended Posts

Is there a way to allow a user to control the turret of a static weapon vehicle from anywhere so that they can see the FOV and optics of the turret without moving the user into the vehicle?  I am trying to create a security camera that will allow the user to view through from anywhere without it moving the user.

I have created a security camera that is based off of a static weapon with a turret with the FOV and optics properties the way I want.

I also have weapon, magazine, and ammo classes that allow the user to pickup, carry, and place the camera wherever he wants through replacement scripts.

I then have an action attached to the user to bring up a dialog display that is suppose to allow the user to select a security camera from a list of the ones he placed.

I have tried to using both:

player moveInGunner _securityCam;

and

_securityCam switchCamera "GUNNER";

separately

MoveInGunner allows the user to interact with the security camera the way I want but unfortunately it moves the actual unit into the camera when I want the unit to stay put.  

SwitchCamera leaves the unit alone, however, it puts the camera behind the security camera and the unit cannot see the optics of the security camera or rotate the camera.

There is probably some other command that I am overlooking, but I have been stuck for a couple of days now.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×