Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

How do you get the GPS position of your character?

$
0
0
I've looked at the source code and tried to find working examples, but I just can't seem to get the position of my character. How do you make this code work?

public override void UpdateAfterSimulation()
{
if (!MyAPIGateway.Input.IsNewKeyReleased(MyKeys.F8))
return;

MyAPIGateway.Utilities.ShowNotification(..., 10000, MyFontEnum.White);
// I've tried 40 different things here like Sandbox.ModAPI.IMyEntity.GetPosition().ToString()
}

Thanks.

Viewing all articles
Browse latest Browse all 903

Trending Articles