SA-MP Forums Archive
FCNPC Issue? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: FCNPC Issue? (/showthread.php?tid=604621)



FCNPC Issue? - jeffery30162 - 07.04.2016

I have created an npc and I tell it to goto a position in an array using the FCNPC_GoTo function. The npc will walk towards the position correctly, then right before it gets to the position it will turn west and move infinitely in that direction. I have checked the array and the values are correct and I have also noticed that the npc never reaches a destination so FCNPC_OnReachDestination is never called.

What could be the issue?


Re: FCNPC Issue? - jeffery30162 - 12.04.2016

Nvm I fixed it me self. Turns out fcnpc_goto doesn't like array directly into the function. Very strange bug