Radar
Functions for miscellaneous radar stuffs.
Functions
GetNearestObjectDistance
Definition:
GetNearestObjectDistance() -> nil
Description:
Get distance to the nearest "large" object.
Arguments:
?
Returns:
?
Example:
GetRadarSelectionID
Definition:
GetRadarSelectionID() -> int nodeid objectid
Description:
Get nodeid and objectid of targeted object
Arguments:
Returns:
nodeid nodeid of targeted object
objectid objectid of targeted object
Example:
HideRadar
Definition:
HideRadar() -> nil
Description:
Hide the radar.
Arguments:
?
Returns:
?
Example:
Definition:
Hide3000mNavpoint() -> ?
Description:
Arguments:
?
Returns:
?
Example:
IsObjectOccluded
Definition:
IsObjectOccluded() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetAimDirIcon
Definition:
SetAimDirIcon() -> nil
Description:
(Presumably) set the icon for hud_new_aimdir.png (mouselook reticle).
Arguments:
?
Returns:
?
Example:
SetAimDirIconColor
Definition:
SetAimDirIconColor() -> nil
Description:
Change the color of the mouselook reticle?
Arguments:
?
Returns:
?
Example:
SetAimDirIconSize
Definition:
SetAimDirIconSize() -> nil
Description:
(Presumably) change size of the mouselook reticle.
Arguments:
?
Returns:
?
Example:
SetDestArrows
Definition:
SetDestArrows() -> nil
Description:
(Presumably) change some aspect of the nav destination arrows on the HUD.
Arguments:
?
Returns:
?
Example:
SetHUDIcon
Definition:
SetHUDIcon() -> ?
Description:
Arguments:
?
Returns:
?
Example:
Definition:
SetNavDestinationArrowIconSize() -> nil
Description:
Set the size of the arrows on the wormhole indicator on the HUD.
Arguments:
?
Returns:
?
Example:
Definition:
SetNavpointFontHeight() -> nil
Description:
(Presumably) change the size of the green + on the radar in ion storms.
Arguments:
?
Returns:
?
Example:
SetRadarSelection
Definition:
SetRadarSelection(int nodeid, int objectid) -> nil
Description:
Change targets.
Arguments:
nodeid nodeid of the object you want to target (2 for most things except ships).
objectid objectid of the object you want to target.
Returns:
Example:
SetRadarSelectionByPoint
Definition:
SetRadarSelectionByPoint(float percentW, float percentH, string targetcommand) -> nil
Description:
Change targets based on a given point on the screen and a specified targeting command.
Arguments:
percentW a float ranging from 0 to 1 indicating what percentage of the screen width the point is located at
percentH a float ranging from 0 to 1 indicating what percentage of the screen height the point is located at
targetcommand VO targeting command (eg RadarNextFront)
Returns:
Example:
<source lang="lua">radar.SetRadarSelectionByPoint(0.3837, 0.9927, "RadarNextFront")</source>
SetSelColor
Definition:
SetSelColor(int r, g, b) -> nil
Description:
Set targetbox color of the currently selected object.
Arguments:
r red component of color (0-255). nil is interpreted as 0
g green component
b blue component
Returns:
Example:
<source lang="lua">radar.SetSelColor(255, 0, 0) -- turns the target box red</source>
SetViewPort
Definition:
SetViewPort() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetWormholeIconSize
Definition:
SetWormholeIconSize() -> nil
Description:
(Presumably) change the size of the wormhole icon on the radar.
Arguments:
?
Returns:
?
Example:
Definition:
Show3000mNavpoint() -> ?
Description:
Arguments:
?
Returns:
?
Example:
ShowRadar
Definition:
ShowRadar() -> nil
Description:
Show the radar.
Arguments:
?
Returns:
?
Example: