Jump to content

How does LPed.RangeToDetectEnemies affect the pursuit system?


cp702

Recommended Posts

In the API example shooting callout, the following comment is present:

// Enable chase AI and extend sense range so suspects won't flee immediately but fight longer
The code it's referring to contains the line

criminal.RangeToDetectEnemies = 80f;
So what is this RangeToDetectEnemies, and how's it work with the pursuit system?
Link to comment
Share on other sites

  • Management Team

It scans the area for enemies within the given range and if there are no, the pursuit system will make the suspects flee. However, for a shootout, we wanted to make the suspects actually fight and only flee if no enemies are around in a big area. So setting this to a very small value, will make suspects flee sooner, while a higher value will make them stay longer until every cop around is either killed or very far away.

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

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