Hello guys, I am trying to implement this code on my project to have some cool camera animations in game (like Gears of War Executions):
https://forums.epicgames.com/udk/udk...tic-animations
However, I am having problems on compiling the code, mainly on the declaration of the variables:
//An instance of the CameraRig class so we can spawn the camera in game
var CameraRig camRig;
Whenever I first compiled the code, it gave me a error message of variable type not recognized. So searching here:
https://api.unrealengine.com/udk/Thr...riable%20Types
I have seen that this type of variable "CameraRig" does not exist, so i tried like
var Actor camRig;
var Object camRig;
var SkeletalMesh camRig;
and others, however I receive the error message: Unrecognized member PickupMesh in class 'actor', and so on, because down on the code there is a command like this:
//Get the cameraPosition socket location from the camera rig mesh
if (cameraNumber == 1)
camRig.PickupMesh.GetSocketWorldLocationAndRotation('cameraPosition1',camSocketPos,camSocketRot);
Any help?
https://forums.epicgames.com/udk/udk...tic-animations
However, I am having problems on compiling the code, mainly on the declaration of the variables:
//An instance of the CameraRig class so we can spawn the camera in game
var CameraRig camRig;
Whenever I first compiled the code, it gave me a error message of variable type not recognized. So searching here:
https://api.unrealengine.com/udk/Thr...riable%20Types
I have seen that this type of variable "CameraRig" does not exist, so i tried like
var Actor camRig;
var Object camRig;
var SkeletalMesh camRig;
and others, however I receive the error message: Unrecognized member PickupMesh in class 'actor', and so on, because down on the code there is a command like this:
//Get the cameraPosition socket location from the camera rig mesh
if (cameraNumber == 1)
camRig.PickupMesh.GetSocketWorldLocationAndRotation('cameraPosition1',camSocketPos,camSocketRot);
Any help?
Comment