I am working on a mission for two players. One of the tasks is to destroy SAM launchers.
For some reason SAM sites do not attack players until you come really close to them. Then they start to attack from long distance. I do not understand the reason. Triggers and SAM sites are the same as I used before.
Also, triggers aimed to correct bots behaviour (selecting target based on the distance comparison between different potential targets) also do not work. But those triggers work perfectly in another mission.
Also, timer indicator refused to work. Then suddenly started to work.
CDK is so unpredictable…
2 Likes
A way to make the AI Helis move has been discovered by Avarik. Here’s the link to that post if anyone needs:
3 Likes
Does anyone Know about Beh Trees and how we can use them to achieve what isnt possible normally, For example here: How to Make AI Helicopters Move in User Missions | War Thunder Wiki These tricks were used to make Ai Helis move. I want to know what other stuff is possible, I think this can really help in Video Production.
Hi, anyone know how to reduce the effectiveness of AI AA i the CDK? I have recuced the accuracy right down but they are still easily shooting me down in user missions.
Regards,
Sapper
It should work. Try to use UnitSetProperties action and set it in there.
It should work not only for AA, but for regular vehicle (like tanks) as well.
I would not be surprised if it is broken now.
I have a “us_xm_975_Roland” in ine of my maps and have it set at 0.25 accuracy and effective shooting rate at 0.3
Lot of misses with that setting but occasionally air that is pretty close often takes a hit. Hope this helps.

1 Like
I’m trying to make a User Mission in which there is a squad of units of different types and they have to be sorted by type.
I tried using unitCheckTag and useForTriggerFiltered in a unitMoveTo function to get them to move to specified areas, but this isn’t working.
How would I achieve this?
Someone please look a this also. I wanna learn how BehTrees work and how we can use them to achieve things which are normally not possible. like making the AI Helis fly.
I looked through the files and these are the available nodes and trees:
|taxi_and_takeoff||air|
|testFighterVsFighter||air|
|testFighterVsFighterDM||air|
|missionBomber||air|
|doPanic||air|
|doFrontalPanic||air|
|missionAssault||air|
|diveBomber||air|
|missionTransport||air|
|missionKamikaze||air|
|missionFlight||air|
|missionRacer||air|
|missionHitThePoint||air|
|missionAssault_torpedo_all||air|
|missionAssaultT||air|
|missionFlightWithoutEvaidance||air|
|missionAssaultTutorial||air|
|railFlight||air|
|tankBotPve||ground|
|tankBotDriveByRoute||ground|
|defaultCTABot||air|
|assaultBot||air|
|captureBot||air|
|assistCaptureBot||air|
|defenderBot||air|
|seekerBot||air|
|idleBot||air|
|rearmingBot||air|
|tankBot||ground, best|
|shipMissionUnit||ship|
|HLBCapture||air|
|missionFighter||air|
|cutsceneFighterVsFighter||air|
|cutsceneFighterVsBomber||air|
|cutsceneDiveBombTarget||air|
|missionTargetEliminator||air|
|collisionAvoidance||air|
|coopBot||air|
|coopBotAttempt||air|
|coopBomberAttempt||air|
|coopBomber||air|
|leftTurn||air|
|rightTurn||air|
|instructorBeh||air|
|unitAttackTarget||air|
|commonBomber||air|
|commonFighter||air|
|testAI||air|
|catapulted||air|
|recon_micro||air|
|quadcopter||air|
|carrierFighter||air|
|carrierBomber||air|
|carrierDiveBomber||air|
|eventMissionSimpleEnergyAttack||air|
|wild_bot||infantry|
|runner||infantry|
|main_seq||infantry|
|runner_wait||infantry|
|front_runner||infantry|
|back_runner||infantry|
|back_runner||infantry|
|defender||infantry|
|wanderer||infantry|
|walker||infantry|
|crawler||infantry|
|croucher||infantry|
And a list from the files which you can read the functions to see how they work and what they do:
ailist.blk (98.4 KB)
2 Likes
Hello everyone, I don’t know if I’m blind or not, but is there a way to replace the spawn point with another without the initial spawn point icon resting on the map ? If yes, how ?
I need help. I do not undestand, why S-75 sites refuse to lock the target and launch missiles.
I set up them the same way I did before, but now something is wrong and I do not uderstand, what is wrong.
The mission is supposed to be mission by URL.
TGPII.blk (53.3 KB)
Looks like I found the problem.
If you want to add S-75 sites to your old mission, you will have this problem with it.
The mission should be recreated from scratch.
You mean you deleted the action (in trigger) for old spawn point, but it is still present on the map?
Hello, is there any way to fix target selection not working with ships? Right now it instantly deselects the target whenever I try to select something while in a ship.
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??