Code:
action bossShootRand
{
my.pan = random(360);
my.roll = random(360);
my.tilt = 90 - random(165);
// Start the ticker.
var ticker = 0;
while(me)
{
var theTarget;
vec_set(theTarget.x, vector(100,0,0));
ticker = ticker + 1;
my.passable = off;
c_move(me, vector(30,0,0), vector(0,0,0), use_aabb + glide);
if (you == player)
{
remDocHealth(10);
}
my.z = my.z + 5;
if (ticker == 50) // Length of time in pseudo-ticks that bullet stays "alive."
{
ent_remove(me);
}
wait(1);
}
}
not working either, the bullets definite hit the player model because they bounce off, which is fine, but they dont want to do damage.