Page 1 of 1

Question on forceMapRecenter in Special Message

Posted: Sun Sep 03, 2023 11:30 am
by Parel803
Good afternoon,

Just a question out of curiosity
On this LUA page: https://commandlua.github.io/assets/Fun ... ssage.html
You have the line: forceMapRecenter [optional] True/False The map will be centered on location if present.

Probably due to languange knowledge on my end but should this move your screen to location without executing the button "jump to location"?

I made this: local msg = ScenEdit_SpecialMessage('playerside', 'Here\'s a message!', {latitude = 'N41.00.00', longitude = 'E005.30.00', forceMapRecenter=true})
In this case I have no difference as without using: forceMapRecenter
What am I doing wrong or do I misunderstood.

regards GJ

Re: Question on forceMapRecenter in Special Message

Posted: Mon Sep 04, 2023 4:44 pm
by blu3s
Hi GJ,

the correct lua is:

Code: Select all

ScenEdit_SpecialMessage( 'playerside', 'Here\'s a message!', { latitude = 1.2, longitude = 3.4 }, true )
Note that forceMapRecenter is another variable outside of the latitude/longitude settings.

Re: Question on forceMapRecenter in Special Message

Posted: Mon Sep 04, 2023 6:33 pm
by Parel803
Goodevening,
Thank you for your time and answer, much appriciated.
regards GJ