DCS func createInfraRed

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: createInfraRed Added with: 1.2.0
Member Of: Spot
Syntax: Spot Object Spot.createInfraRed(Object Source , Vec3 localRef , Vec3 point )
Description: 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

Return Value: Spot Object
Return Example:
Examples: The following will create a laser emitting 1 meter above the jtac unit toward the targeted group.
local jtac = Unit.getByName('jtacBob')
local target = Unit.getByName('BMPAirDefenseSystemGroup1_unit1'):getPoint()

local ray = Spot.createInfraRed(jtac, {x = 0, y = 1, z = 0}, target)
Related Functions: Spot Functions: createLaser. createInfraRed, destroy, getCategory, getPoint, setPoint, getCode, setCode