Npc Mode - GetPlayerPos Broken? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Npc Mode - GetPlayerPos Broken? (
/showthread.php?tid=118789)
Npc Mode - GetPlayerPos Broken? -
hansen111 - 05.01.2010
Can anyone confirm that GetPlayerPos (on any none npc players) are broken ? im just getting 0.0 coords back to the npc.
I could alternatively move all the bot ai outside the npcmode and just send it commands to stop, resume ect, but that is exactly not how it should be, npc ai should be in the npcmode. It kindda makes it hard to write bot ai without knowing where the other players are.
Re: Npc Mode - GetPlayerPos Broken? -
Calon - 05.01.2010
Try GetMyPos (
https://sampwiki.blast.hk/wiki/GetMyPos).
Re: Npc Mode - GetPlayerPos Broken? -
hansen111 - 05.01.2010
I dont need the position of the npc itself, i need the npc to know where other players are as i described in my first post.