安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
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://psteamcommunity.yuanyoumao.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?