Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Make Ped Shooting On Next Peds

Featured Replies

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.

Edited by JackNorris

  • Author

Thank you for your answer!
But that does not seem to be the only mistake. They still do not shoot at me.

I noticed an odd behavior: When I reload all plugins by ReloadPlugins they begin shooting at me. Maybe that could be the key to find the cause.

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.