TASK::TASK_FOLLOW_TO_OFFSET_OF_ENTITY(ped,
player, // target
0, 0, 0, // offsets
3.0f, //movespeed
-1, // timeout
1.0f, // stoprange
true, // persistFollowing
false, // dunno
false, // walkonly
false, false, false); // DUNNO
TASK::TASK_GO_TO_ENTITY(ped,
player, // target
-1, // timeout
1.0f, // stoprange
3.0f, // movespeed
0,0); // DUNNOI've noticed that the NPC only rushes towards me if I am actively running, if I am still or walking it will start walking towards me. I am also using PED::SET_PED_COMBAT_MOVEMENT(ped, 2); // 2 is Offensive movementbut it doesn't seem to make a difference. Most of the times the dude will just start casually walking towards me, resolutely but slowly. I am trying to program behavior where under some favorable circumstances in combat, like when you are not paying attention to that specific NPC and you are relatively close, it just rushes you with the knife. Any help will be appreciated.