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.

Cop not escorting ped after arrest

Featured Replies

So I made my first small custom callout and everything is working fine. It's a pursuit with a vehicle. However one thing that bothers me is, that after the arrest of the driver, the arresting officer is not able to escort the person to his car. It looks like the ped starts walking, the cop looses grip, regraps the ped and repeat. After a few tries the ped manages to free himself, gets into his vehicle and drives of as if nothing had happened.

 

I already tried clearing the peds tasks on callout end but still same behaviour.

End() looks like this

 

public override void End()
        {
            foreach (Ped criminal in criminals.Where(criminal => criminal.Exists()))
            {
                criminal.Tasks.Clear();
                criminal.Dismiss();
                Log($"Dismissed criminal {criminal.GetHashCode()}");
            }

            Log($"Callout {GetType().Name} ended");
            base.End();
        }


So nothing super special that could interfere. What am I missing?

  • Management Team

That looks fine to me, could you perhaps post a more complete source code example? Also is there anything in the log file that looks like a cop failing to arrest?

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Management Team

Nothing that looks suspicious to me from the code. I guess I'll try running it locally and see if I get the same, but that might take a few days. If you do find the issue in the meantime, please let me know here.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
3 minutes ago, LMS said:

Nothing that looks suspicious to me from the code. I guess I'll try running it locally and see if I get the same, but that might take a few days. If you do find the issue in the meantime, please let me know here.

Sure. I haven't done something too fancy I think so I'm either overlooking something or caused a bug of some sort. If you need anything else, let me know.

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.