Hi,
also ich habe jetzt in meinem Axt.c Script folgenes:
ENTITY* axt_ent;
vec_set(axt_ent.x,camera.x);
function place_axt()
{
axt_ent = me;
proc_mode = PROC_LATE;
while(player != NULL)
{

vec_set(chopper.mdl.x,camera.x);
vec_to_angle(chopper.mdl.pan,camera.pan);
vec_set(chopper.mdl.pan,camera.pan);
wait(1);
}
}


ENTITY* axt_ent;
vec_set(axt_ent.x,camera.x);
function place_axt()
{
axt_ent = me;

So.....

Und in meinem playercode folgenes:
action player_walk()
{
ent_create("chopper.mdl",nullvector,place_axt);
my.health=100;
player = me;
my.eflags |= FAT | NARROW;
set(my, FLAG2);
my.emask |= ENABLE_IMPACT;
set(my,INVISIBLE);
while(my.health>0)
{
player_health=my.health;
handle_gravity(); // gravity
handle_movement(); // movement
my_speed = c_move(my,dist,absdist,IGNORE_PASSABLE|GLIDE);
handle_camera(); // camera function
wait(1);
}
player_health=0;
...........
Da ist nur das ent_create neu.
Leider bekomme ich jetzt folgenen Error: place_axt undeclared identifier.
Jemand eine Idee??


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*