here is my code for the enemy:
-----------------------------
action enemy_dummy()
{
enemy = my;
while(1)
{
wait(1);
}
}
-------------------------------
and here is the code for the model:
--------------------------------
action player_machinegun_rotater()
{
my.group = 2;
VECTOR enemypos;
while(1)
{
vec_set(enemypos, enemy.x);
vec_sub(enemypos, my.x);
vec_to_angle(my.pan, enemypos);
my.tilt = 0;
set(my,PASSABLE);
wait(1);
}
}
------------------------------------------------
what am i doing wrong?
Come and play my new browsergame - Valley Of Wolves:
http://www.mafiacreator.com/ValleyOfWolvesHurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!