Jump to content

Recommended Posts

Posted

Hello

 

I would like to see a new command/feature in the editor.

 

Example i would like to be able to create a trigger that I can connect to example a radar or other units.. that can activate something when the unit see the enemy.

 

Example mission

I wold like to setup 1 zone.

And then I like to insert 1 large radar.

When bluefor is detected by the radar in the zone ( or by the radar ) then I would like a trigger to activate example my mig29 planes so they can startup and takeoff to intercept bluefor.

Posted

Paging dr MBot, paging dr MBot! to the mission builder subforum please! paging dr MBot!

 

(I'm curious how this is done too)

I5 9600KF, 32GB, 3080ti, G2, PointCTRL

Posted

Until it's there, can't you get a similar result with a zone the size of the radar coverage, and 'unit inside zone + unit's altitude > X m AGL &/or unit altitude > Y m ASL

' ?

Cheers.

Posted

If you are ready to use scripting, this can be achieved with the detection function:

 

http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine/DCS:_World/Part_2#Detection

 

For example:

local unit = Unit.getByName("Unit #001")
if unit then
local ctr = unit:getGroup():getController()
local targets = ctr:getDetectedTargets()
for t = 1, #targets do
	if targets[t].object then
		local objCat = targets[t].object:getCategory()
		if objCat == 1 then   --object is a unit
			local desc = targets[t].object:getDesc()
			if desc.category == 0 or desc.category == 1 then   --unit is an airplane or helicopter
				local target_point = targets[t].object:getPoint()
--and so on...
			end
		end
	end
end
end

Posted

Ok. Way over my head lol. But it does contain the information needed to get it done. Just need to learn a metric s-ton of other stuff before this makes sense to me.

 

mrw-my-boss-is-explaining-things-to-me-that-are-going-way-over-my-head-139605.gif

I5 9600KF, 32GB, 3080ti, G2, PointCTRL

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...