NPC Not streamed in
#1

Hello,

I'm trying to add an NPC to my server. The NPC connects just fine, and according to the server [print in callbacks] the NPC spawns.

However, when I join the server and go to the NPC, he doesn't appear. The server knows the NPC's coordinates, because when I teleport to the NPC, I am placed where the NPC should be.

I should probably also add that the NPC is driving a vehicle, and the vehicle (When I teleport to the NPC is just sitting at the location the NPC should have been at.

I wasn't able to find any help in any of the tutorials, so if anybody has any thoughts your input would be greatly appreciated!
Reply
#2

Bump, anybody got any idea?
Reply
#3

Make sure your OnPlayerUpdate is returning 1. Make sure the bot's interior and virtual world are the same as yours. You can use SetPlayerInterior and SetPlayerVirtualWorld to change them. NOTE: The default Virtual World and Interior are 0.
Reply
#4

Put this on OnPlayerUpdate (for testing purposes) and it returned "BOT 0 0"
Код:
printf("BOT %i %i",GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
What's weird is that the vehicle's position seems to be updated when I'm not in the sync range of the bot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)