Jump to content

damn it not again

Members
  • Posts

    6
  • Joined

  • Last visited

About damn it not again

  • Birthday 07/13/1971

Personal Information

  • Flight Simulators
    DCS
  • Location
    USA
  • Interests
    Lots

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you, I'll give it a try
  2. Okay I need some help. I have very very very limited knowledge on LUA. I'm trying to score bombs dropped on a specific target but I cannot get a return on this script. Where did I go wrong or do I just need to scrap it. -- Define target point local targetPoint = { x = 451519, y = 623, z = 897725 } -- Bounding box size in meters local delta = 30 -- +/- 30 meters local targetZone = { x_min = targetPoint.x - delta, x_max = targetPoint.x + delta, y_min = targetPoint.y - delta, y_max = targetPoint.y + delta, z_min = targetPoint.z - delta, z_max = targetPoint.z + delta } local score = 0 local bombsTracked = {} -- Function to check if position is within target zone local function isWithinTargetZone(pos) return pos.x >= targetZone.x_min and pos.x <= targetZone.x_max and pos.y >= targetZone.y_min and pos.y <= targetZone.y_max and pos.z >= targetZone.z_min and pos.z <= targetZone.z_max end -- Event handler for bomb impact local function onEvent(event) if event.id == world.event.S_EVENT_SHOT then local initiator = event.initiator if initiator and initiator:getTypeName() == "MK-82" then local pos = initiator:getPosition().p local bombID = initiator:getID() -- Avoid scoring multiple times for the same bomb if not bombsTracked[bombID] then bombsTracked[bombID] = true if isWithinTargetZone(pos) then score = score + 100 trigger.action.outText(string.format("MK-82 #%d hit the target! Score: %d", bombID, score), 10) else trigger.action.outText(string.format("MK-82 #%d missed.", bombID), 10) end end end end end -- Register event handler world.addEventHandler({onEvent = onEvent})
  3. Any chance the Gun OVRD capability is going to come to the F-16
  4. When I go to STRF for a gun run the TGP goes into SP and I can't sleep it. Is this normal?
  5. When I load mavericks on the F-16 I'm getting two horizontal bars and the cross hairs become somewhat visible when I manipulate the TMS but they are way off center and the crosshairs change where they are after I reload into the game or server. I tried boresighting it but the image is not sharp at all. The TGP is working fine and the image is normal. I've tried all three modes on the MAV,s with the same result, on both D's and He's.
×
×
  • Create New...