#include <acknex.h>
#include <default.c>
VECTOR trace_coords;
PANEL* compass_pan =
{
bmap = "pic.pcx";
pos_x = 0;
pos_y = 40;
layer =-1;
flags = VISIBLE;
}
ENTITY* ent1 =
{
type = "soldier.mdl";
layer = 200; // display above view entities with layer 1
//view = camera;
flags2 = VISIBLE;
client_id = camera; // same camera parameters as the default view
x = 300; // place 100 quants ahead of the view
y = 0; // 50 to the right
z = 0; // and center vertically
}
Use this. It works 100%
edit:
I´m sure there was a command to add a function to a view entity otherwise you have to control it with another function.
function model_rotate()
{
while(key_r)
{
ent1.x += 12*time_step;
wait(1);
}
}
on_r = model_rotate;
but that´s c-script convert it to lite-c and it should work!