Jump to content

Ped does not initiate pursuit whilst inside a store


techgamer15

Recommended Posts

This is the code that intiates a pursuit when the outcome number is more than 80 (basically a 20% chance of a pursuit.)

else if (outcomeNumber >= 80 && outcomeNumber <= 100)
                    {
                        suspect.BlockPermanentEvents = false;
                        suspect.Dismiss();
                        Game.DisplaySubtitle("~r~Suspect~w~: Screw this, I'm taking these explosives and I'm stashing them...");
                        suspect.Metadata.searchPed = "~r~Explosives~w~";
                        pursuit = Functions.CreatePursuit();
                        Functions.AddPedToPursuit(pursuit, suspect);
                        Functions.SetPursuitIsActiveForPlayer(pursuit, true);
                        pursuitCreated = true;
                        Game.LogTrivial("Pursuit created for SuspiciousAmmunitionPurchase callout");
                    }

This callout is based inside an Ammunation building, however the ped does not react to it creating a pursuit. Any reason why? Is it to do with it being inside a building?

Link to comment
Share on other sites

On 7/12/2018 at 7:52 PM, NoNameSet said:

also you dismissed the suspect...

Strange, becuase I was looking at other people's example callouts and they dismissed the suspect from the callout before the pursuit. Anyway, when I have the chance I will remove that line.

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