Interface IMyRemoteControl
Describes remote control block (mods interface)
Inherited Members
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyRemoteControl : IMyShipController, IMyTerminalBlock, IMyCubeBlock, IMyEntity, IMyControllableEntity, IMyTargetingCapableBlock, IMyRemoteControl, IMyShipController, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Methods
GetFreeDestination(Vector3D, Single, Single)
Gets a destination and tries to fix it so that it does not collide with anything
Declaration
Vector3D GetFreeDestination(Vector3D originalDestination, float checkRadius, float shipRadius = 0F)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | originalDestination | The final destination that the remote wants to get to. |
System.Single | checkRadius | The maximum radius until which this method should search. |
System.Single | shipRadius | The radius of our ship. Make sure that this is large enough to avoid collision. A value of 0f will use the ship's WorldVolume radius. |
Returns
Type | Description |
---|---|
Vector3D | Adjusted position |
GetNearestPlayer(out Vector3D)
Gets the nearest player's position.
Declaration
bool GetNearestPlayer(out Vector3D playerPosition)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | playerPosition |
Returns
Type | Description |
---|---|
System.Boolean | True if have found player, and you have ability to use this function |