Jump to content
7katwoal12

Make suspect shooting on other peds

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);

 

Share this post


Link to post
Share on other sites

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

 

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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×