Jump to content

Functions.IsPedVisualLostLonger(Rage.Ped)


Officerporci

Recommended Posts

  • Management Team

If you want to learn more about functions, you can use the XML documentation which you can find here linked below. In your specific case, the function "Gets a value indicating whether visual has been lost for a moment and the last known position is being searched."

 

 

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

Link to comment
Share on other sites

  • Management Team

If the second argument of OnPursuitPedHasVisualChanged is false, it means visual has been lost for a while and units are searching.

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

Link to comment
Share on other sites

 private static void Events_OnPedArrested(Ped suspect, Ped arrestingOfficer)
        {
            if (Functions.IsPedArrested(suspect))
            {
                Functions.PlayScannerAudio("ATTENTION_ALL_UNITS SUSPECT_ARRESTED");
            }
        }

 

 

another problem, audio string not played, happens when  the player (alone and not) arrests the last  suspect  in a pursuit , while with other AI units it is played properly with all suspect in pursuit

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