Ok this is were I am so far lvl loads now and I placed the cbabe model in and am trying to get it to move with the c_move comand but it doesnt seem to attach to the cbabe model cause all it does is cycle though its animations.

also while I was tinkering I tried to make my pistal model appear in the corner of the screen I just dont know were to put this

ent_create (drone_mdl, temp, start_drone);

and what to change on it well other than the drone_mdl to my pistal_mdl.

And lastly I wanted to put a mouse mode in my game just not sure how to do it in workshop14 they spend more time explaining how to make a program change from one mouse mode to the other they never really explain how to just implement the mouse mode you want in your project or at least thats all I got out of it.

any help would be appreashated


and heres my current scripte:

#include <acknex.h>
#include <default.c>

ENTITY* pistal_ent =

{
type = "pistal.mdl";
layer = 10;
view = camera;
x = 20;
y = -10;
z = -10;
}
action my_cbabe()
{
while (1)
{
if (key_a)
my.pan += 3*time_step;
if (key_s)
my.pan -= 3*time_step;
if (key_space)
c_move (my, vector(15 * time_step, 0, 0), nullvector, GLIDE);
wait (1);
}
}
function main()
{
video_mode = 7;
level_load ("Testlvl.wmb");
while (1)
}