Jump to content

Make suspect shooting on other peds


7katwoal12

Recommended Posts

Hi! I'm developing a subway terrorist attack callout and i want my suspect to shoot other peds. I have added this, but doesn't work. I hope you can help me with this! thanks.

mySuspect.Inventory.GiveNewWeapon("WEAPON_CARABINERIFLE", (short) 100, true);
mySuspect.Tasks.FightAgainstClosestHatedTarget(200f, 1);

 

Link to comment
Share on other sites

16 minutes ago, vulture001 said:

mySuspect.Inventory.GiveNewWeapon("WEAPON_CARBINERIFLE", 100, true);

 

theres it a tiny bit edited, you had carbine rifle spelled incorrectly, my code should work

Okey thanks, but i dont know how to make the ped shoot on other civilians.

Link to comment
Share on other sites

3 minutes ago, mmodsgtav said:

Okey thanks, but i dont know how to make the ped shoot on other civilians.

try mySuspect.Tasks.FightAgainstClosestHatedTarget(50f);

 

also i replied on your other thread

Edited by vulture001
thread

cd.png

Link to comment
Share on other sites

  • 5 months later...
On 2/16/2019 at 10:54 AM, WildJam said:

Can u tell me how to make ped shooting on cops? not only me

ped.Tasks.FightAgainst(target);

or just don't block events on the ped, so they should react to gunfire

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...