• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Trucking mission issue
#3
You need to define what ?close? means.



1. Find the closest x load points?



Iterate over the load points, measure the player?s distance to each one and sort them. Then pick the closest x load points and show them to the player in a dialog.



2. Find all load points in range x?



Iterate over the load points, and on each iteration, measure the distance to the player and save the ones below your range x in an array. Finally, show them to the player in a dialog.
  Reply


Messages In This Thread
Trucking mission issue - by JohnnyMP - 2021-02-13, 07:17 PM
RE: Trucking mission issue - by JohnnyMP - 2021-02-15, 05:27 PM
RE: Trucking mission issue - by Manyula - 2021-02-16, 11:23 AM
RE: Trucking mission issue - by Vamp - 2021-02-23, 11:00 PM

Forum Jump: