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.

Pursuit AI Problem

Featured Replies

Well.. just today,

after having already spent days on new update for my plugin,

i noticed, that if the player accepts pursuit callout, when my partner is on foot,

LSPDFR takes control of him and all the other cops, and he starts to aim furiously at the pursuit suspect miles away etc. 

Even forceEnding the callout wont stop this looping behaviour..

There seems to be nothing i can do to prevent this, as i don't want to disable the whole pursuit AI, or disable cops joining

but specifically disable it for the partner ped, and maybe add him later to the pursuit..

 

~Until something can be done to this, its no partners for now...   :confused:

 

Thank you

~Patrinus

 

 

 

 

 

Edited by Patrinus

5 minutes ago, Patrinus said:

There seems to be nothing i can do to prevent this, as i don't want to disable the whole pursuit AI, or disable cops joining

but specifically disable it for the partner ped, and maybe add him later to the pursuit..

Ped myCop = new Ped(cop, stuff, whatever goes here normally);

Do what you need with your partner, then if you want LSPDFR to use it as a cop

Functions.AddCopToPursuit(myCop, pursuit);

Something like that.

You can also do Functions.SetPedAsCop(Ped); But I don't know what exactly this entails.

 

Just an idea if you desperately wanted this.

Live Streaming daily from 8pm GMT (UK) at https://twitch.tv/OfficialLukeD - I play a variety of things 😄

Join my official discord server for support, general chat and my stream schedule! https://discord.gg/Mddj7PQ

33 minutes ago, LukeD said:

Ped myCop = new Ped(cop, stuff, whatever goes here normally);

Do what you need with your partner, then if you want LSPDFR to use it as a cop

Functions.AddCopToPursuit(myCop, pursuit);

Something like that.

You can also do Functions.SetPedAsCop(Ped); But I don't know what exactly this entails.

 

Just an idea if you desperately wanted this.

What Luke said. You'll have to not set him as a cop...that should stop LSPDFR from taking control of him. But as Luke said, I don't know what else that will have an effect on.

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

LSPDFR will automatically detect cop ped models and set them as cops. Perhaps you could modify the persona though to prevent that? 

var persona = Functions.GetPersonaForPed(ped);
Functions.SetPersonaForPed(ped, new LSPD_First_Response.Engine.Scripting.Entities.Persona(ped, persona.Gender, persona.BirthDay, persona.Citations, persona.Forename, persona.Surname, persona.LicenseState, persona.TimesStopped, persona.Wanted, false, false));

 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

  • Author

Unfortunately none of those work as SetPedAsCop(ped) cant make ped not cop, and SetPersona parameters i think are only for pullovers etc..

 

And the thing is that the pursuit AI is really cool for the partner once close to the suspects, but far away onfoot, its silly for them to just stand and aim at nothing, with or without a partner...

 

@LMS Would something like SetPedAsCop(ped, false), break too much the way you have set up the system?

 

Thanks anyway,

~Patriiinus 

   

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.