-
Re: Positionsvergleich
Var Kolo1 As New CMyColony(1234);
Var Ship1 As New CMyShip(56789);
WriteLine('SectorID: ' + (CStr(Kolo1.SectorID)));
WriteLine('SectorID: ' + (CStr(Ship1.Sector.SectorID)));
Du kannst natürlich auch über die Koordinaten vergleichen kommt auf das selbe hinnaus. Außerdem brauchst du nicht zu prüfen üb das schiff im Orbit ist oder nicht.
WriteLine('Koords Kolo: ' & Kolo1.SRS.Item(0).MapPosition.ToString());
WriteLine('Koords Shiff: ' & Ship1.SRS.Item(0).MapPosition.ToString());
If (Kolo1.SRS.Item(0).MapPosition.ToString() = Ship1.SRS.Item(0).MapPosition.ToString())
{
WriteLine ('Test');
}
Gruß
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules