SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 11/04/2012, 03:07 PM   #1
Jeffry
High-roller
 
Jeffry's Avatar
 
Join Date: Oct 2009
Location: Germany
Posts: 1,572
Reputation: 61
Default NPC - Interior

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
__________________


Jeffry is offline   Reply With Quote
Old 14/04/2012, 11:13 AM   #2
jaami
Huge Clucker
 
jaami's Avatar
 
Join Date: Oct 2010
Location: Gaming
Posts: 262
Reputation: 13
Default Re: NPC - Interior

http://wiki.sa-mp.com/wiki/GetPlayerInterior
__________________
Quote:
Willing to host for people who cant buy or cant afford to buy host. Certain regulations you must have.
jaami is offline   Reply With Quote
Old 14/04/2012, 11:28 AM   #3
Jeffry
High-roller
 
Jeffry's Avatar
 
Join Date: Oct 2009
Location: Germany
Posts: 1,572
Reputation: 61
Default Re: NPC - Interior

Quote:
Originally Posted by jaami View Post
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.
__________________


Jeffry is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] [INTERIOR] Dodo Plane Interior -Really Nice!- s1k Filterscripts 76 27/09/2012 03:47 AM
Butchers Interior & Shop Interior (MAP) Shadow_ Screenshots and Videos 10 24/05/2012 03:25 PM
Disable interior markers for 1 interior only? <Weponz> Help Archive 1 19/11/2010 09:23 PM
[Map] [MAP]Radio Los Santos Interior [sounds radio included in interior] Lucas Giovanni Maps 5 18/08/2010 09:05 AM
Interior airsoftglock Help Archive 3 10/07/2010 11:06 PM


All times are GMT. The time now is 12:07 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.