SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   NPC chase the nearest player (https://forum.sa-mp.com/showthread.php?t=659045)

VVWVV 21/09/2018 06:29 PM

Re: NPC chase the nearest player
 
Quote:

Originally Posted by matje (Post 4053687)
(I think) foreach loops only through players, not NPCS.

This fork of the standalone foreach library declares the popular iterators - Player, Bot (NPC), Actor, Vehicle, etc.


All times are GMT. The time now is 06:31 PM.

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