KnightHawk75 -> RE: Popup message (11/6/2021 12:44:40 AM)
|
quote:
'jump to location' - Use the 3rd optional parameter. ScenEdit_SpecialMessage('SideNameHere','The html or plain text here', {table of latitude=TheLatHere, longitude=TheLonHere}); So let's just say for example some unit enters some area (or say it is unit damaged) and you have a trigger for it, the action might include: local u = ScenEdit_UnitX(); --get the unit wrapper. ScenEdit_SpecialMessage('Blue','Something happened here. Jump to location is available',{latitude=u.latitude,longitude=u.longitude}); or say it's some hard coded location... ScenEdit_SpecialMessage('Blue','Something happened here. Jump to location is available',{latitude=1.1234,longitude=-1.1234});
|
|
|
|