Pawn attack movement navigation
Posted: Wed Sep 10, 2008 9:21 am
Can someone tell with a few words,which commands should i use in genericmonster script,and in which orders,
to make the pawn use the nearest scriptpoints when it is running towards the player.
If the player is standing one store above the pawn,
the pawn runs to attack the player but cant reach him,so it is stuck running at the base of the wall.
I want it to check that point3 is the nearest to the player.
then go to point1,check again in which scriptpoint is nearest to the player,
move to point2,(since this is still the nearest) ,check again next nearest scriptpoints to the player,
and then from point2 it will be able to direct move towards the player.
So during start of run-or something, i want the script to check which is the nearest point to the player,
which is point3,and then find which are the two previous points from point3,
which are point2 and point1,so it can go first to point1.
This idea has a problem:if the player is downstairs,and is near and below point3,the pawn might go to point3 and stick to the upper floor.
If there is a better and easy way to navigate the pawns,tell me.
to make the pawn use the nearest scriptpoints when it is running towards the player.
If the player is standing one store above the pawn,
the pawn runs to attack the player but cant reach him,so it is stuck running at the base of the wall.
I want it to check that point3 is the nearest to the player.
then go to point1,check again in which scriptpoint is nearest to the player,
move to point2,(since this is still the nearest) ,check again next nearest scriptpoints to the player,
and then from point2 it will be able to direct move towards the player.
So during start of run-or something, i want the script to check which is the nearest point to the player,
which is point3,and then find which are the two previous points from point3,
which are point2 and point1,so it can go first to point1.
This idea has a problem:if the player is downstairs,and is near and below point3,the pawn might go to point3 and stick to the upper floor.
If there is a better and easy way to navigate the pawns,tell me.