Log in to reply

[Question] How to let peds attack player

  • What's up guys.

    I'm trying to make a simple lua script mod which makes GTA V a little bit more realistic.

    I want to make nearby peds who was touched my my player.

    I used PED.GET_PED_NEARBY_PED, ENTITY.IS_ENTITY_TOUCHING_ENTITY and for loop to find touched ped.

    And I tried to make that ped to attack my player but I haven't found any solution yet.

    I tried AI.TASK_COMBAT_PED method but I don't know how to make it work.

    I think there must be the way because there is a mod like making peds riot.

    Is there anyone who can help me ?

    Thank you for reading.

Log in to reply

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.