#Global Hooks $GameInit: [ --Due to FRED having a limit for characters in sexps, function names are super acroymnized --create Camera cC = function(name, px, py, pz, ox, oy, oz) pos = ma.newVector(px,py,pz) ori = ma.newVector(ox,oy,oz) ts.setCamera(ts.createCamera(name, pos, ori)) end --create Camera with Objects cCO = function(name, objPos, objOri) pos = objPos.position ori = objOri.position ts.setCamera(ts.createCamera(name, pos, ori)) end --set Camera sC = function(name) ts.setCamera(getCameraByName(name)) end --move Camera To mCT = function(x, y, z, time, acc) destVec = ma.newVector(x,y,z) thisCamera.setPosition(destVec, time, acc) end --move Camera To Object mCTO = function(object, time, acc) destVec = object.Position thisCamera.setPosition(destVec, time, acc) end --pan Camera To pCT = function(x, y, z, time, acc) destVec = ma.newVector(x,y,z) thisCamera.setOrientation(destVec, time, acc) end --pan Camera To Object pCTO = function(object, time, acc) destVec = object.Position thisCamera.setOrientation(destVec, time, acc) end ] #End