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

Natural Gravity as an Integer

$
0
0
Hey guys :)

I have somewhat of a problem scripting...
I want to have the natural gravity as an Integer for further calculations, but the problem is I am not able to find a way to use the result of GetNaturalGravity()
I can't even add .Length() as mentioned in some posts...

Code:
IMyRemoteControl rc = GridTerminalSystem.GetBlockWithName("Remote Control") as IMyRemoteControl;
VRageMath.Vector3D gravity = rc.GetNaturalGravity().Length();
Which shows me this error
Natural Gravity as an Integer

Viewing all articles
Browse latest Browse all 903

Trending Articles