좋아요 0
댓글 10
동영상 0
업로드 0
팔로워 0
@Zemanez i think giving them a movement task fixed it, but do you know how to get more controllable following? when they follow you they use groups so theres a 8 dog limit and they also might sometimes ignore you if you go too far away and they stay quite some distance away
i played another animation but no use, do you know how ent does that too?
i tried AI::CLEAR_PED_TASKS_IMMEDIATELY(dog); and AI::CLEAR_PED_SECONDARY_TASK(dog); and neither of them stopped them from staying in scenario
and do you also know how i would make it play the entering and exiting animation instead of acting like a human?
@Zemanez how do you disable a scenario because when i make the dog sit it does not respond to the ext anim
disable thinking gets rid of the new task stuff so they only want to drive but i cant seem to make them always go to waypoint @Zemanez
i was using the follow entity function whatever its called, also i cant seem to make NPCs behave like your driver... most of the time they completely ignore instruction ```cpp
Ped driver = DriverOf(car);
RequestControl(driver);
RequestControl(car);
AI::CLEAR_PED_TASKS_IMMEDIATELY(driver);
AI::CLEAR_PED_SECONDARY_TASK(driver);
WAIT(10);
PED::SET_PED_INTO_VEHICLE(driver, car, -1);
WAIT(10);
AI::TASK_VEHICLE_DRIVE_TO_COORD_LONGRANGE(driver, car, pos.x, pos.y, pos.z, speed, DriveMode, -1.0f);
PED::SET_PED_STAY_IN_VEHICLE_WHEN_JACKED(driver, TRUE);
ENTITY::SET_ENTITY_AS_MISSION_ENTITY(driver, TRUE, TRUE);
VEHICLE::SET_VEHICLE_ENGINE_ON(car, TRUE, TRUE, TRUE);
WAIT(5);
DisableThinkingSafe(driver);
```
could i use this? PED::SET_PED_STAY_IN_VEHICLE_WHEN_JACKED
@Zemanez Whats the difference between drive to coord and drive to coord long range and can you help me understand why follow is not working? And how will i allow the passenger to leave if they are being set there constantly?
Can you please help me with this: https://forums.gta5-mods.com/topic/19340/making-ai-drivers-in-c-follow-and-pick-up-player
It should be similar to how you guys make the monkey chauffeur drive places