Hello, everyone. I've stumbled across an error, and being a newbie in the programming world I don't know how to correctly rectify it. What I have done, is I have created a main script inluding the script file that has an action in it.
Here is my main code (all of it, at the moment):
#include <acknex.h>
#include <default.c>
// Define objects here
include "player.c";
///////////////////////Functions
function main()
{
level_load ("floor_1.WMB");
media_loop ("level_1.wav", 0, 100);
}
And here is the script with the action.
action player1()
{
camera.x = me.x;
camera.y = me.y - 300;
camera.z = me.z + 75;
camera.pan = 90;
camera.tilt = -10;
while (key_w);
c_move(me, nullvector, vector(15 * time_step, 0, 4 * time_step), GLIDE);
}
My guess is that I have to describe the function in the action script in my main script somehow; but I don't know how to.
Help in resolving this would be apprieciated. ^^
The main script is a WDL (otherwise it vomits all over me saying that function main has a missing bracket) and the action script is a C-script.