Jump to content

Pursuit.Exists() or similar request


alexguirre

Recommended Posts

I declared my own boolean called pursuitInitiated. That only works if you trigger the pursuit in code though. 

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!

Link to comment
Share on other sites

  • 3 years later...

Thank you. When I try to call

 

LHandle pursuit = Functions.GetActivePursuit();

if (pursuit = true)

{

    End();

}

 

OR 

 

LHandle pursuit = Functions.GetActivePursuit();

if (pursuit.exists)

{

    End();

}

 

None of those work. Get redlined for true, and exists doesn’t show up as a possible entry by intellisense. Both give me red line 

Edited by Markadaliah
Link to comment
Share on other sites

On 11/2/2018 at 7:56 PM, Markadaliah said:

Thank you. When I try to call

 

LHandle pursuit = Functions.GetActivePursuit();

if (pursuit = true)

{

    End();

}

 

OR 

 


LHandle pursuit = Functions.GetActivePursuit();
if (pursuit != null)
{
    End();
}

 

None of those work. Get redlined for true, and exists doesn’t show up as a possible entry by intellisense. Both give me red line 

 

 

If you want to check if the pursuit is still active, check if it is null or not.

LHandle pursuit = Functions.GetActivePursuit();
if (pursuit != null)
{
    End();
}

 

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