Jump to content

HungryCoyote

Members
  • Posts

    188
  • Joined

  • Last visited

Posts posted by HungryCoyote

  1. Need a little help. I am trying to make a simple autolase mission. I kinda understand mist but just can not wrap my head around moose. I do not get any jtac info, either in comms menu or from the jtac. Obviously something is missing but I have no idea what.

     

    local recce = SPAWN:New("Reaper")
             :InitDelayOff()
             :OnSpawnGroup(
               function (group)
                 local unit = group:GetUnit(1)
                 local name = unit:GetName()
                 autolaser:SetRecceLaserCode(name,1688)
                 autolaser:SetRecceSmokeColor(name,SMOKECOLOR.Red)
               end
             )
             :InitCleanUp(60)
             :InitLimit(1,0)
             :SpawnScheduled(30,0.5)
             
              local autolaser = AUTOLASE:New(FoxSet,coalition.side.BLUE,"Wolfpack",Pilotset)

    autolase1.miz

  2. I wanted to have players place a mark on F10 map, Give it a specific name, then use comms menu to spawn late activated unit. This can already be done using Gamemaster or FatCow scripts. i wanted to make my own script that did a similar thing so I could edit it to my own needs. I looked at those lua files but there was so much extra stuff in them that i could not figure out exactly how they work. Definitely need to learn more basic coding first.

  3. That is way over my head. I spent the last two days just trying to learn how to use simple lua in a dcs script file. I managed to go from

    print ("Hello, World!")    --works in lua compiler but not in DCS

     to

    local function message()
    msg1 = "Hello, World!"
    trigger.action.outText(msg1, 12)
    end
    message()   --works in DCS but not in compiler

    This would have taken me five minutes by using the Trigger Action / Message to All

     

    edit:

    I added this. It does not work but at least it is not giving me any errors. So that is something.

     

    local requestM = missionCommands.addSubMenu('Request Asset')
    local subN1 = missionCommands.addSubMenu('Spawn Tank', requestM)

    local function marker()
    Event = {
     id = 25,
     idx = 3,
     time = 1,
     initiator = 'Player',
     coalition = 2,
     groupID = 3,
     text = 'spawn',
     pos = vec3}
    end

    marker()

    local function spawn()
     vars =
     {
     groupName = 'Tank',
     point = pos,
     action = 'clone',
     }
     end
     
     spawn()

×
×
  • Create New...