SetUnitLosState()
Posted: 18 May 2008, 04:21
fwiw ...
Code: Select all
r5907 | trepan | 2008-05-17 23:13:53 -0300 (Sat, 17 May 2008) | 24 lines
* Added the following LuaSyncedCtrl call-outs:
- SetUnitLosMask(unitID, allyTeamID, number | table) -> nil
- SetUnitLosState(unitID, allyTeamID, number | table) -> nil
- If a mask bit is enabled, than the engine will not update
the corresponding state bit (think of them as 'lock' bits)
- If a table is used, entries should be of the form:
{ string = boolean } -- 'false' to clear, 'true' to set
ex: SetUnitLosState(3, 2, { los = true, radar = false })
- The valid strings are 'los', 'radar', 'prevLos', and 'contRadar'
prevLos: previous LOS
contRadar: continuous radar (since prevLos contact)
*** These 2 dictate whether or not a unit type is known