Radar

From Vendetta Lua
Revision as of 09:12, 14 January 2012 by Draugath (talk | contribs) (Added new functions and updated display to use Template:Function)
Jump to navigationJump to search

Functions for miscellaneous radar stuffs.

Functions

GetNearestObjectDistance

Definition
GetNearestObjectDistance() ->  number
Description
Get distance to the nearest "large" object.
Returns
Type Name Description
number



GetRadarSelectionID

Definition
GetRadarSelectionID() ->  number  nodeid,  number  objectid
Description
Get nodeid and objectid of targeted object
Returns
Type Name Description
number nodeid nodeid of targeted object
number objectid objectid of targeted object



Hide3000mNavpoint

Definition
Hide3000mNavpoint( ?) ->  ?
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



HideRadar

Definition
HideRadar() ->  nil
Description
Hide the radar.
Returns
Type Name Description
nil



IsObjectOccluded

Definition
IsObjectOccluded( ?) ->  ?
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetAimDirIcon

Definition
SetAimDirIcon( ?) ->  ?
Description
(Presumably) set the icon for hud_new_aimdir.png (mouselook reticle).
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetAimDirIconColor

Definition
SetAimDirIconColor( ?) ->  ?
Description
Change the color of the mouselook reticle?
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetAimDirIconSize

Definition
SetAimDirIconSize( ?) ->  ?
Description
(Presumably) change size of the mouselook reticle.
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetDestArrows

Definition
SetDestArrows( ?) ->  ?
Description
(Presumably) change some aspect of the nav destination arrows on the HUD.
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetHUDIcon

Definition
SetHUDIcon( ?) ->  ?
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetNavDestinationArrowIconSize

Definition
SetNavDestinationArrowIconSize( ?) ->  ?
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetNavpointFontHeight

Definition
SetNavpointFontHeight( ?) ->  ?
Description
(Presumably) change the size of the green + on the radar in ion storms.
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetRadarSelection

Definition
SetRadarSelection( number  nodeid,  number  objectid) ->  nil
Description
Change targets.
Arguments
Type Name Description
number nodeid nodeid of the object you want to target (2 for most things except ships)
number objectid objectid of the object you want to target.
Returns
Type Name Description
nil



SetRadarSelectionByPoint

Definition
SetRadarSelectionByPoint( ?) ->  ?
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetSelColor

Definition
SetSelColor( number  r,  number  g,  number  b) ->  nil
Description
Set targetbox color of the currently selected object.
Arguments
Type Name Description
number r red component of color (0-255). nil is interpreted as 0
number g green component
number b blue component
Returns
Type Name Description
nil
Notes
<source lang="lua">radar.SetSelColor(255, 0, 0) -- turns the target box red</source>

SetViewport

Definition
SetViewport( ?) ->  ?
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



SetWormholeIconSize

Definition
SetWormholeIconSize( ?) ->  ?
Description
(Presumably) change the size of the wormhole icon on the radar.
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



Show3000mNavpoint

Definition
Show3000mNavpoint( ?) ->  ?
Arguments
Type Name Description
 ?
Returns
Type Name Description
 ?



ShowRadar

Definition
ShowRadar() ->  nil
Description
Show the radar.
Returns
Type Name Description
nil