ID:155004
![]() Oct 12 2011, 7:22 pm
|
|
Is it possible to make a simple code that if player is not in NPC oview(7) npc is forced to go back to his spawn.And prevent AI from walking diagonally while walking back.
|
![]() Oct 12 2011, 7:31 pm
|
|
Yes.
|
Use Del() and New(), it's really easy. You have to delete him when he goes out of view and use new() to respawn him.
We are not here to write codes for you. We are here to help you make them. |
Avainer1 wrote:
Use Del() and New(), it's really easy. You have to delete him when he goes out of view and use new() to respawn him.Well i know there is a simple way like: step_to(idk what was in here) |
That would completely redundant as you could set a variable for their <code>x</code>, <code>y</code> and <code>z</code> in <code>mob/AI(?)/New()</code> and have a reset <code>proc</code> that sets them back to their location when the player is out of view.
|