Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
A simple script that creates a new marker every time it is executed could look like this:
[code]
private readonly GPSInterfaceV2 gps;
public Program()
{
gps = new GPSInterfaceV2(Me);
}
void Main()
{
gps.Update();
gps.AddGps("Test", Me.GetPosition());
}
// Here you have to paste the code from https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2559461462 from the "GPSInterfaceV2 - Source" section
[/code]
If you don't want to create a new marker every time, but just move the marker, you have to extend the script
I very big potential in this script.
It would be great to have gps waypoint, attachet to connector on ship(some distance of the fornt of it) to make it fully operational with remote control.
There is now also a function to get all GPS positions created by this block.
If it is not too much effort to adjust the code I recommend to use the new GPSInterfaceV2 in ingame scripts.
Best regards.
I made this mod over 3 years ago. At that time it was meant as a proof of concept to give ingame scripts the possibilities of mods, so it is kept relatively simple. (No persistence, no multiplayer)
I will have another look at the mod, maybe it's time to improve it a bit and add new features. (Like for example methods to get all GPS positions, or to change them)
And someway to get coords from existing gps?