TXScan
25 functions. Also as Markdown for agents.
- BIN_fnc_clearTXScanClears TXScan drawing
- BIN_fnc_createTXScanCreates a scan with the name defined as class in CfgTXScans or from given params. If name doesn't exists in config and params are not provided,…
- BIN_fnc_cropTXScanCrops given scan
- BIN_fnc_deleteTXScanDeletes scan with given name from extension and the map
- BIN_fnc_diag_TXScanAdds user action menu to the player with different TXScan diag options
- BIN_fnc_drawTXScanDraws TXScan with given name
- BIN_fnc_getAllTXScansReturns array of names of all TXScans stored in extension
- BIN_fnc_getTXScanAngleReturns TXScan angle
- BIN_fnc_getTXScanDrawDataReturns draw data for given TXScan
- BIN_fnc_getTXScanPolygonReturns current intersection polygon for given scan
- BIN_fnc_getTXScanPolygonDetailsReturns estimated area and perimeter of the given scan polygon
- BIN_fnc_getTXScanPositionGets stored TXScan transmitter position
- BIN_fnc_getTXScanPrecisionReturns stored TXScan precision
- BIN_fnc_getTXScanSaveDataReturns array with given TXScan data which is used for saving/loading
- BIN_fnc_getTXScanWorldBoundsReturns currently set boundaries of active area
- BIN_fnc_loadTXScanStateLoads TXScan data from global saved variables into extension
- BIN_fnc_preInitTXScanShould be called from preInit, contains saving/loading functions as well as default initisalization
- BIN_fnc_saveTXScanStateSaves TXScan data into global variables so that it can be serialised and then loaded from game save when needed
- BIN_fnc_scanTXIntersects current scan polygon (or map square if no scan exists) with triangle originated from RX position and returns the triangle
- BIN_fnc_setTXScanAngleSets TXScan angle
- BIN_fnc_setTXScanPolygonPre-sets intersection polygon for given scan. Can only be done with newly created scans since once the first scan is made, the polygon cannot be…
- BIN_fnc_setTXScanPositionSets TXScan transmitter position
- BIN_fnc_setTXScanPrecisionSets TXScan precision
- BIN_fnc_setTXScanWorldBoundsSets map bounds in which scans could be carried out. Default [0,0,worldSize,worldSize]
- BIN_fnc_updateTXScanDrawDataRetrieves draw data for TXScan and updates drawing