hi,
I can get all other values but not "Angle" for rotor block.
var rotor = GridTerminalSystem.GetBlockWithName("Rotor_drill") as IMyMotorAdvancedStator;
float angle = rotor.GetValueFloat("Angle");
Object reference not set to an instance of object error.
float angle = rotor.GetValueFloat("Velocity"); - this and any other float variable work fine.
Is Angle disabled through script ingame ?
Dave
I can get all other values but not "Angle" for rotor block.
var rotor = GridTerminalSystem.GetBlockWithName("Rotor_drill") as IMyMotorAdvancedStator;
float angle = rotor.GetValueFloat("Angle");
Object reference not set to an instance of object error.
float angle = rotor.GetValueFloat("Velocity"); - this and any other float variable work fine.
Is Angle disabled through script ingame ?
Dave