Mission Creation Advices, Ask Your Questions Here

Anyone aware of CDK created missions sometimes does not load player custom liveries even if they had them activated? Are there methods of fix for said issue?

I deactivated the respawn point with missionMarkAsRespawnPoint and checked disableAfter 0 to restrict players to spawn on it, it works, but there is a white icon on the map and I want to make it disappear

Hi, you could try deactivating the trigger that contains the respawn point instead, when a condition is reached?

Regards,
Sapper

Nope, didn’t work, but thanks for trying

I’m having a strange issue where AI units teleport to the map origin on clientside. I have LAV ADs at a base in my custom mission and whenever a player moves far enough away (presumably when they are unloaded clientside?) and returns, all the AI appear to have been teleported to the very ‘center’ (0, 0, 0) of the map. In reality, they are still there and can be damaged and interacted with as normal, but they are invisible and visual effects and sounds come from where they appear to be.

Could there be something in my mission causing this, or is there something I could otherwise do about it? Or is it just a bug I can’t do anything about?

Hey there kathryn, I need to know if you know that you have to create custom units and then apply skins??

Hello you lot! I have a question, how does one get the AI aircraft (D3A1 with the full payload) )to actually Kamikaze? I know theres the checkbox and you can assign a target in the UnitSetProperties but that doesn’t seem to do anything. I can’t force the AI to basically suicide bomb either (they just go up and down forever without doing much else). I am trying to make a USS laffey type mission so AI aircraft attack a player controlled naval vessel.

I recently built a mission in which i somehow made them work. They seem to be kinda slow and dont always shoot at me

        unitsSetSite{
          missileChannelsMax:i=2
          detector:t="detector_01"
          tracker:t="tracker_01"
          fireUnit:t="s_75_01"
          auxUnit:t="kamaz_01"
          auxUnit:t="kamaz_02"
          object_type:t="any"
        }

        unitAttackTarget{
          playerAttracted:b=yes
          object:t="tracker_01"
          object:t="detector_01"
          object:t="kamaz_01"
          object:t="kamaz_02"
          object:t="s_75_01"
          attack_type:t="fire_at_will"
          weaponType:t="all"
          forceTarget:b=yes
        }

and the units

tankModels{
    name:t="s_75_01"
    tm:m=[[-3.72529e-08, 0, 1] [0, 1, 0] [-1, 0, -3.72529e-08] [-550, 6, 709.542]]
    unit_class:t="ussr_ai_sam_launcher_s_75"
    objLayer:i=1
    closed_waypoints:b=no
    isShipSpline:b=no
    shipTurnRadius:r=100
    weapons:t="ussr_ai_sam_launcher_s_75_default"
    bullets0:t="120mm_9m37m_aam"
    bullets1:t=""
    bullets2:t=""
    bullets3:t=""
    bulletsCount0:i=0
    bulletsCount1:i=0
    bulletsCount2:i=0
    bulletsCount3:i=0
    modification:t="manual_extinguisher"
    modification:t="tank_tool_kit"
    crewSkillK:r=0
    applyAllMods:b=no

    props{
      army:i=2
      count:i=1
      formation_type:t="cols"
      formation_div:i=3
      formation_step:p2=11, 12.5
      formation_noise:p2=0, 0
      attack_type:t="fire_at_will"
      use_search_radar:b=yes
      calmDetection:b=yes
      targetAir:b=yes
      targetGnd:b=no
      accuracy:r=1
      effShootingRate:r=1
    }

    way{}
  }

wheeled_vehicles{
    name:t="kamaz_01"
    tm:m=[[-4.37114e-08, 0, 1] [0, 1, 0] [-1, 0, -4.37114e-08] [-700.46, 5.14048, 547.863]]
    unit_class:t="ussr_kamaz_4310_awning"
    objLayer:i=1
    closed_waypoints:b=no
    isShipSpline:b=no
    shipTurnRadius:r=100
    weapons:t=""
    bullets0:t=""
    bullets1:t=""
    bullets2:t=""
    bullets3:t=""
    bulletsCount0:i=0
    bulletsCount1:i=0
    bulletsCount2:i=0
    bulletsCount3:i=0
    crewSkillK:r=0
    applyAllMods:b=no

    props{
      army:i=2
      count:i=1
      formation_type:t="rows"
      formation_div:i=3
      formation_step:p2=2.5, 2
      formation_noise:p2=0.1, 0.1
    }

    way{}
  }

  wheeled_vehicles{
    name:t="kamaz_02"
    tm:m=[[1, 0, 0] [0, 1, 0] [0, 0, 1] [-747, 5.5, 616]]
    unit_class:t="ussr_kamaz_4310_fuel_carrier"
    objLayer:i=1
    closed_waypoints:b=no
    isShipSpline:b=no
    shipTurnRadius:r=100
    weapons:t=""
    bullets0:t=""
    bullets1:t=""
    bullets2:t=""
    bullets3:t=""
    bulletsCount0:i=0
    bulletsCount1:i=0
    bulletsCount2:i=0
    bulletsCount3:i=0
    crewSkillK:r=0
    applyAllMods:b=no

    props{
      army:i=2
      count:i=1
      formation_type:t="rows"
      formation_div:i=3
      formation_step:p2=2.5, 2
      formation_noise:p2=0.1, 0.1
    }

    way{}
  }

tankModels{
    name:t="tracker_01"
    tm:m=[[0, 0, 1] [0, 1, 0] [-1, 0, 0] [-688.95, 5.5, 701.536]]
    unit_class:t="ussr_ai_sam_radar_snr_75"
    objLayer:i=1
    closed_waypoints:b=no
    isShipSpline:b=no
    shipTurnRadius:r=100
    weapons:t=""
    bullets0:t=""
    bullets1:t=""
    bullets2:t=""
    bullets3:t=""
    bulletsCount0:i=0
    bulletsCount1:i=0
    bulletsCount2:i=0
    bulletsCount3:i=0
    crewSkillK:r=0
    applyAllMods:b=no

    props{
      army:i=2
      count:i=1
      formation_type:t="rows"
      formation_div:i=3
      formation_step:p2=2.5, 2
      formation_noise:p2=0.1, 0.1
      use_search_radar:b=yes
    }

    way{}
  }

tankModels{
    name:t="detector_01"
    tm:m=[[-2.98023e-08, 0, 1] [0, 1, 0] [-1, 0, -2.98023e-08] [-673.744, 5.5, 700]]
    unit_class:t="ussr_ai_sam_radar_p_12"
    objLayer:i=1
    closed_waypoints:b=no
    isShipSpline:b=no
    shipTurnRadius:r=100
    weapons:t=""
    bullets0:t=""
    bullets1:t=""
    bullets2:t=""
    bullets3:t=""
    bulletsCount0:i=0
    bulletsCount1:i=0
    bulletsCount2:i=0
    bulletsCount3:i=0
    crewSkillK:r=0
    applyAllMods:b=no

    props{
      army:i=2
      count:i=1
      formation_type:t="rows"
      formation_div:i=3
      formation_step:p2=2.5, 2
      formation_noise:p2=0.1, 0.1
      use_search_radar:b=yes
    }

    way{}
  }

its not very good but it works for me

Is there any way to get the value of an axis?

I’m trying to get searchlights to move in the night sky - the single campaign mission ‘Fireflies’ (Guadalcanal) has this. Been using unitAddAreasForSearchLight but not having much luck (they are fixed). Any ideas guys?

Hey, everyone!

I’m trying to create a mission involving the BM-21 MLRS, and I’ve encountered the following issue:

By design, if a shell lands within 1000m of the target, the target becomes aware it’s under attack and begins preparing to leave. This means the player has limited time to destroy the target before it moves (hitting a moving target is much harder).

Current Solution:

To implement this, I’ve placed the target at the center of a 1000m-diameter zone and created a bombing area with 1 HP (so any shell that hits the area destroys it). I then use triggers based on this logic.

Problem with Current Solution:

  • In Realistic Battles (RB) mode, the bombing area is visible on the map and in-game.
  • In Simulator Battles (SB) mode, the BM-21 model behaves incorrectly, and there are issues with operating the Mavic drone.

Goal:

I want this logic to work only in RB mode without the bombing zone markers being visible.

Questions:

  1. Is there a way to hide these markers in RB mode?
  2. Are there alternative solutions to achieve the same effect without using a bombing zone?

Any suggestions would be greatly appreciated. Thanks!

Hey there, Does anybody know how to place AI planes with their engines turned off ?? I know how to place em but not with their engines off.
Help is greatly appreciated

In ‘unitsetproperties’, ensure to set ‘speed’ to 0, ‘fuel’ to 0 and click on ‘engines enabled’ and then untick so that it is an empty tick box. I also tick ‘cannotmove’. You can also tick ‘stayonground’ while you are at it.
Remember to create a squad with all the planes you want to be like this, so it will be easier to just select this squad to adjust ‘unitsetproperties’ instead of individually :)

1 Like

ThankYou! Kind Sir.

1 Like

Hi all.

I have been playing about with getting sounds into custom missions; the only one I have had any luck with is “aircraft/ambient/alarm”.
Anyone know anymore that work? Tried using the ones on the GitHub, without success. Don’t suppose anyone has a list of working ones?

Regards,
Sapper

1 Like

Based on my experience, it is enough to just turn off “Engines Enabled” in UnitSetProperties action (AI Params tab).

Turning off engines

image

Once you enable it, plane starts to take off.

Also, if you put plane from team A onto airfield of team B, the plane will crash.

1 Like

These guys were able to add custom audio to missions somehow. As I understand, they modified sound pack from naval mode. So, if you install this mod, you cannot play naval battles properly.
You can try to ask them how they did it.

1 Like

Hey there community, I hope everyone is doing great. So, I made a mission with some infantry and tanks moving in background, I used the action “UnitMoveTo” to move the infantry, In mission, Everything works great, THe infantry does move as intentded, But when i went to watch the missions replay, The infantry doesnt move, it just stands there, Now why is it happening that in mission it moves but in the replay of the same mission , It just stands there like Nothing!!

Probably just an issue with mission replays, often I see weird stuff like AI units just not being there or user skins not being recorded.

Yes, there is the problem with infantry for some reason. This issue has been existing since the very beginning and they are not interested to fix it.
Infantry can move though if you create a path for it.