hi guys,
Phaelax i didnt get ur method, but i found a way, i think there might be a slight problem, the enemy faces me where ever i go, but faces me with his back!
here's the code, help me out!
repeat
rem ENEMY GAURDING
loop object 7011,5,25
set object speed 7011,25
move object 7011,-3
xpos#=object position x(7011)
ypos#=object position y(7011)
yrot#=object angle y(7011)
zpos#=object position z(7011)
posx#=object position x(player)
posz#=object position z(player)
rem when enter a certain position
if object position z(player)>=-544 and object position z(player)<=-353 and object position y(player)>=0 and object position y(player)<=200 and object position x(player)>=352 and object position x(player)<=448
rem make the enemy stop and raise his gun at me
show object 701
loop object 701,10,10
set object speed 701,15
hide object 7011
stop object 7011
move object 7011,3
position object 701,xpos#,ypos#,zpos#
rotate object 701,0,yrot#,0
point object 701,posx#,0,posz#
else
stop object 701
hide object 701
show object 7011
loop object 7011,5,25
set object speed 7011,10
move object 7011,-3
if object position z(7011)=-600
rotate object 7011,0,180,0
endif
if object position z(7011)=0
rotate object 7011,0,0,0
endif
endif
this is an enemy gaurding a wall, coming and going, when i enter his parameters he raises his gun at me.
‘Those who ignore the lessons of the past are doomed to repeat them’ (Napoleon)