mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 05:14:09 +00:00
World and Peds
This commit is contained in:
parent
3378cad058
commit
14c7c1d7ca
19 changed files with 505 additions and 17 deletions
|
@ -141,10 +141,9 @@ SpawnCar(int id)
|
|||
|
||||
static void
|
||||
LetThemFollowYou(void) {
|
||||
CPed* player = (CPed*) FindPlayerPed();
|
||||
CPed *player = (CPed*) FindPlayerPed();
|
||||
for (int i = 0; i < player->m_numNearPeds; i++) {
|
||||
|
||||
CPed* nearPed = player->m_nearPeds[i];
|
||||
CPed *nearPed = player->m_nearPeds[i];
|
||||
if (nearPed && !nearPed->IsPlayer()) {
|
||||
nearPed->SetObjective(OBJECTIVE_FOLLOW_PED_IN_FORMATION, (void*)player);
|
||||
nearPed->m_pedFormation = rand() & 7;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue