Jump to content

Spawning cops at beginning of pursuit


AnIdioticMonkey

Recommended Posts

Hi! Basically as my title suggests, i just want to know if there is any way to spawn cops along with the criminal and add them to the pursuit. I know you can use the Function.RequestBackup() but sometimes they don't arrive until later, or at all. I see no outright addCopToPursuit and was wondering if there was a way yet.

 

NINJA EDIT : Remembered the addPedToPursuit! Does this work on cops and instead of adding them as a criminal, does it add them as a cop with LSPDFR's AI?

Link to comment
Share on other sites

  • 2 months later...

As showcased in my mod,
http://www.lcpdfr.com/files/file/9719-auto-pursuit-backup/
As @alexguirre mentioned, you use Functions.RequestBackup(Vector3, EBackupResponseType, EBackupUnitType);

However! The cops won't pursue unless you use EBackupType.Pursuit. Otherwise they go to your last known location and fumble around.

Link to comment
Share on other sites

0.3 will most likely have the ability to spawn a new Cop() and add them to a pursuit via AddCopToPursuit() or something similar, which is something I'm really looking forward to. For now though, the answers above will have to suffice. 

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

Link to comment
Share on other sites

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