SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 13/08/2017, 05:28 AM   #501
Marines
Little Clucker
 
Marines's Avatar
 
Join Date: Oct 2016
Location: Republic of Vietnam
Posts: 8
Reputation: 10
Default Re: [REL] GPS Plugin - Gamer_Z's Advanced Pathfinding.

Quote:
Originally Posted by Gamer_Z View Post
I would suggest you use Incognitos' Streamer Plugin, create a DynamicArea that covers Los Santos or any other area you want, then loop from 0 to MAX_NODES ( 32768 ), use IsPointInDynamicArea with GetNodePos
I would use this code only once and store those nodes somewhere persistently for reuse.
Thank you so much +Rep.
Marines is offline   Reply With Quote
Old 18/08/2017, 02:59 PM   #502
ISmokezU
Gangsta
 
Join Date: Aug 2016
Posts: 513
Reputation: 53
Default Re: [REL] GPS Plugin - Gamer_Z's Advanced Pathfinding.

Is there a possible way to calculate the route?

I'm trying to rotate the arrows when there's like a corner route it twists and sometimes points in the wrong direction what's the best way to do a proper calculation?
__________________
AFTER ALL
ISmokezU is offline   Reply With Quote
Old 18/08/2017, 05:58 PM   #503
Gamer_Z
High-roller
 
Gamer_Z's Avatar
 
Join Date: Jun 2009
Location: Eindhoven, NL
Posts: 3,610
Reputation: 1354
Default Re: [REL] GPS Plugin - Gamer_Z's Advanced Pathfinding.

Quote:
Originally Posted by ISmokezU View Post
Is there a possible way to calculate the route?

I'm trying to rotate the arrows when there's like a corner route it twists and sometimes points in the wrong direction what's the best way to do a proper calculation?
This is too little info to be able to help you. Can you provide either some screenshots or code with static node id's / static route and provide the rotation code?
__________________

Do not contact me for private help, please stop wasting your time trying to offer me a job
(Especially if you cannot pay the market rate for a developer)
If you are looking for scripters/mappers/staff/whatever look here
The only help I offer is my occasional reaction on the public forums
Gamer_Z is offline   Reply With Quote
Old 18/08/2017, 06:40 PM   #504
ISmokezU
Gangsta
 
Join Date: Aug 2016
Posts: 513
Reputation: 53
Default Re: [REL] GPS Plugin - Gamer_Z's Advanced Pathfinding.

Say I place a target at Four Dragons Casino And I'm at the Visage (This is the actual Scenario)

In the Corners of the route, the arrows are facing the destination point instead of facing the actual route: http://imgur.com/a/CMlHo

However, when I myself is facing the Destination (Four Dragons Casino) it's pointed correctly: http://imgur.com/a/ePArZ

But if I place a target at say, Roca Escalante, The arrows would be facing the opposite way which is correct because it's the way I created them but I wanted to know the best way in calculating routes to set the positions of the arrow: http://imgur.com/a/eTk7Y

An example of the goal: http://imgur.com/a/aOEhp
__________________
AFTER ALL
ISmokezU is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Discussion] Advanced GPS - Plugin (?) Gamer_Z Plugin Development 128 22/04/2013 06:28 PM
[Plugin] [REL][WINDOWS] Gamer_Z's INI EDITOR [need help with linux compiling] Gamer_Z Plugin Development 20 02/01/2012 04:25 PM
[help][plugin] Can't load mysql plugin mariomako Help Archive 8 16/07/2011 02:37 PM
[Question] Plugin Load Failed : Plugin Does not conform to architecture. Gamer_Z Plugin Development 2 09/06/2011 06:42 AM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 02:32 PM


All times are GMT. The time now is 11:19 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.