Hello,
I'm confused why the spawned ped does not shoot at me:
public override bool OnCalloutAccepted()
{
suspects[0] = new Ped("a_f_m_bodybuild_01", new Vector3(-466.5565f, -700.2243f, 20.03186f), 219.2955f);
suspects[0].Inventory.GiveNewWeapon("WEAPON_CARBINERIFLE", 200, true);
suspects[0].RelationshipGroup = "TerroristSubway";
Game.SetRelationshipBetweenRelationshipGroups("TerroristSubway", "COP", Relationship.Hate);
Game.SetRelationshipBetweenRelationshipGroups("COP", "TerroristSubway", Relationship.Hate);
}
public override void Process()
{
for(int i=0; i<suspects.Length; i++)
{
suspects[i].Tasks.FightAgainstClosestHatedTarget(10);
}
}
I thought this could be easyer than using the FightAgainst task by iterating through all other peds.
What is my mistake?
Thanks in advance.