SA-MP Forums Archive
NPC - Interior - 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)
+--- Thread: NPC - Interior (/showthread.php?tid=333452)



NPC - Interior - Jeffry - 11.04.2012

Hello guys,

I have just create a NPC that walks around in an Interior. The NPC works fine, but I came up to a problem. When I teleport to the NPC I will always spawn in Interior 0, same goes for /spec'ing the NPC.

I am using SetPlayerInterior for the NPC after it spawns. Even setting the Interior multiple times after the spawn won't set it into the interior.

Is there any solution for this?

Thank you.

Jeffry


Re: NPC - Interior - jaami - 14.04.2012

https://sampwiki.blast.hk/wiki/GetPlayerInterior


Re: NPC - Interior - Jeffry - 14.04.2012

Quote:
Originally Posted by jaami
Посмотреть сообщение
This is added at the teleport and spec command for sure. It works fine for normal players, just not for NPCs that are in interiors.