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.
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.