I am making a turret for my a.i. test and I was wondering if there was a easy way to make the turret turn to face the player without pointentity,turret,player
right now I have
if entitydistance(turret,player) =< 25 and entitypick(turret,25)=player then
pointentity turret,player
fire#=fire#+1
else
turnentity turret,0,1,0
endif
I am trying to do a Z and X axis check but I'm a little confused
can someone help me?
right now I have
if entitydistance(turret,player) =< 25 and entitypick(turret,25)=player then
pointentity turret,player
fire#=fire#+1
else
turnentity turret,0,1,0
endif
I am trying to do a Z and X axis check but I'm a little confused
can someone help me?