SA-MP Forums Archive
Fallout 4 compass/map - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fallout 4 compass/map (/showthread.php?tid=643151)



Fallout 4 compass/map - Ripster - 14.10.2017

Hi! Could you guys help me out with some ideas how I could make Fallout's compass/map working in samp? I mean script-wise.
For those of you who don't know how it works: Basically if you want to head towards a location, you have to face in the direction of the said location's map icon.




Re: Fallout 4 compass/map - wallee - 14.10.2017

you would constantly need to redraw textdraws according to the player's facing angle ... for it to work smooth like in fallout it would have to be a pretty fast timer which is not really worth it


Re: Fallout 4 compass/map - Dignity - 14.10.2017

Quote:
Originally Posted by wallee
Посмотреть сообщение
you would constantly need to redraw textdraws according to the player's facing angle ... for it to work smooth like in fallout it would have to be a pretty fast timer which is not really worth it
Use YSF for TextDrawSetPos and OnPlayerUpdate.

I really don't understand why people still prefer timers over OPU. If you have to use a timer that is less than one second (and probably miles off), you should use OnPlayerUpdate.


Re: Fallout 4 compass/map - Ripster - 15.10.2017

Okay use textdrawsetpos, but how can i calculate textdraw coords from an in game coord + facing?