Player vs NPC's VW, rep+
#7

Quote:
Originally Posted by GuyB790
Посмотреть сообщение
Does the NPC connect & spawn necessarily after each playerm? If so you can just decrease the ID.

Otherwise save a player's VW in a variable and once looking for the playerid of the NPC then put it according to the stored virtual world (in like, pVirtualWorld[MAX_PLAYERS]).
Okay. I got 3 NPCs and each has divided worldid (first one -1, the second one -2, third -3).
Seems like it is working with 2 players, but I'm kind of afraid how it is going to react while many players are spawning at the same time.
Reply


Messages In This Thread
Player vs NPC's VW, rep+ - by cdoubleoper - 19.07.2016, 11:50
Re: Player vs NPC's VW, rep+ - by GuyB790 - 19.07.2016, 12:06
Re: Player vs NPC's VW, rep+ - by cdoubleoper - 19.07.2016, 12:12
Re: Player vs NPC's VW, rep+ - by Dayrion - 19.07.2016, 12:14
Re: Player vs NPC's VW, rep+ - by GuyB790 - 19.07.2016, 12:19
Re: Player vs NPC's VW, rep+ - by PrO.GameR - 19.07.2016, 12:27
Re: Player vs NPC's VW, rep+ - by cdoubleoper - 19.07.2016, 12:31
Re: Player vs NPC's VW, rep+ - by GuyB790 - 19.07.2016, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)