I'm trying to link the rotation of one object with another. how can I do this?
Example: I want to link the X, Y rotation of a chopper's gun turret to another object.
I have the object attached to the chopper with the axis named as 'camera1' but I have no clue how to read the angle of the turret and apply it to the camera.
Here's the turret script:
class Turret
{
gunAxis="OsaHlavne";
turretAxis="OsaVeze";
body="OtocVez";
gun="OtocHlaven";
soundServo[]={"",0.05,1};
gunBeg="usti hlavne";
gunEnd="konec hlavne";
minElev=-50;
maxElev=45;
minTurn=-360;
maxTurn=360;
};