How do I start a script complete from scratch?
I tried to go to go to properties -> A7 Lite_C Project so I'd get the function main() and the required #included files and I wrote up a script
But I can't seem to get it to stop messing with the camera.
///////////////////////////////
#define PRAGMA_PATH "%EXE_DIR%\templates\images";
#define PRAGMA_PATH "%EXE_DIR%\templates\models";
#define PRAGMA_PATH "%EXE_DIR%\templates\sounds";
#include <acknex.h>
//#include <default.c>
#include "mtlFX.c"
///////////////////////////////
function main()
{
level_load("darin1.WMB");
wait(2);
printf("Press [0] to move the camera!");
}
action suzetta()
{
while(1)
{
my.skill2 = 5 * (key_w - key_s);
my.pan = 5 * (key_a - key_d);
c_move(my,my.skill2,nullvector,IGNORE_PASSABLE);
camera.x = my.x;
camera.y = my.y;
camera.z = my.z;
wait(1);
}
}
Is all I've got. And all I want is to get the camera to follow the model with the action "suzetta" (the name of the player character)
But for some reason, something else seems to take control of the camera, like a walk-through script. How do I get rid of that?
Default.c was commented out because I was trying to find out where this alternate camera script was lurking
All I want is the camera to do what it is suppose to do in the Suzetta action.