Difference between revisions of "DCS func createInfraRed"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
Line 13: | Line 13: | ||
|par4= | |par4= | ||
− | |desc= Creates | + | |desc= Creates an infrared ray emanating from the given object to a point in 3d space. Can be seen with night vision goggles. |
localRef is technically an optional variable, however the functions format requires an entry to be made. If not used, simply replace with nil | localRef is technically an optional variable, however the functions format requires an entry to be made. If not used, simply replace with nil | ||
− | |||
− | |||
− | |||
|rtnType= [[DCS_Class_Spot|Spot Object]] | |rtnType= [[DCS_Class_Spot|Spot Object]] | ||
Line 39: | Line 36: | ||
|reqType4= | |reqType4= | ||
− | |optType1= | + | |optType1= |
− | |optName1= | + | |optName1= |
|optType2= | |optType2= | ||
Line 48: | Line 45: | ||
[[DCS_Class_Spot|'''Spot Functions:''']] {{listofScriptingSpotFuncs}} | [[DCS_Class_Spot|'''Spot Functions:''']] {{listofScriptingSpotFuncs}} | ||
− | |examples= The following will create a laser emitting 1 meter above the jtac unit toward the targeted group | + | |examples= The following will create a laser emitting 1 meter above the jtac unit toward the targeted group. |
local jtac = Unit.getByName('jtacBob') | local jtac = Unit.getByName('jtacBob') | ||
local target = Unit.getByName('BMPAirDefenseSystemGroup1_unit1'):getPoint() | local target = Unit.getByName('BMPAirDefenseSystemGroup1_unit1'):getPoint() | ||
− | local ray = Spot.createInfraRed(jtac, {x = 0, y = 1, z = 0}, target | + | local ray = Spot.createInfraRed(jtac, {x = 0, y = 1, z = 0}, target) |
|notes= | |notes= | ||
}} | }} | ||
[[Category:Class Functions|createInfraRed]] | [[Category:Class Functions|createInfraRed]] |