Jump to content

PMcG

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by PMcG

  1. Here`s the track.

     

    • The first 2 times  I ask my wingman to Attack My target, I get no call back or response from my wingman.
    • I then ask my Wingman to Attack my Enemy, I get a call of Attack My Target, and Wingman replies Affirm.(seems mixed up actually)
    • I then ask my Wingman to attack Ground Target, call back of attack targets of opportunity, and wingman replies roger.

    wingman attacks and destroys 2 out 3 targets as I left the last call too late.

    attached is track file and mission file.

    AttackMyTarget.trk Taxi Test.miz

  2. I am having the same issue, Ai wingman won't taxi or takeoff once I've taken off. I'm using liberation 2.5.1. It only happens when I use the dedicated server. I have the server installed on my laptop and I fly on my main desktop computer. I even set liberation to runway starts but I spawn on the ramp. I will post a track when I get home from work.

  3. Hi,

     

    I'm trying to get an F16 to bomb an ammo dump but its not engaging. What am I missing. Here`s the .MIZ file and code.

     

    local HeliGroup = GROUP:FindByName( "F16C" )

    local AmmoDump = STATIC:FindByName("AmmoDump")

    local AmmoCoord = AmmoDump:GetCoordinate()

    local AmmoPOS = AmmoCoord:GetVec2()

    function assignTask(Tasks)

    HeliGroup:TaskBombing(AmmoPOS,false,"ALL",1,90,15000)

    end

    timer.scheduleFunction(assignTask, {HeliGroup}, timer.getTime())

    TaskAttackStatic.miz

  4.  

     

    [code]

    local tasks = {[1] = {Bombing Task here}}

    local gp = Group.getByName('whatever')

    for i = 1, gp:getSize() do

    gp:getUnit(i):getController():pushTask(tasks)

    end

    [/code]

     

    Hi Grimes,

    Thank you for the above snippet. I've spent the last 2 months trying to figure out a way to assign a group's Ai wingmen seperate targets. I was told it wasn't possible. I have a question.

     

    local tasks = {[1] = {Bombing Task here}} , would i insert target1 where it says "Bombing Task here" ? And target1 is the below?

     

    target1 = UNIT:TaskBombing(Vec2, GroupAttack, WeaponExpend, AttackQty, Direction, Altitude, WeaponType, Divebomb)

     

    And if I wanted the 2nd unit in the group to attack a separate target would it be?

     

    Local tasks= {[1] = {target1} , [2] = {target2 }}

     

    Thx

×
×
  • Create New...