a friend of me mentioned, that Laser defense can target air-targets. so i looked in the files and found only WL_Land and unit_types (so no air targeting?) also i have seen tanks targeting air units, but i cant find something like WL_Air in the files for them...so...how? one thing was interesting. in the guard_layer section there is also "unit_type" but no specific definition for this, is this just a placeholder or target everything? maybe this is the reason why tanks can attack air units? then i have looked into some naval-files. there is no naval unit with a guard_layer stat, so, how do they define the target? i thought that maybe the frigate has something like it, because it has two different weapons...but nope, cant find it. so how do the naval units define what they can target, and what not? and how are subs handled? i mean...they cant be targeted by surface weapons, right? inside the air_defense_tool_weapon.json there is also "target_layers":["WL_Air","WL_Land","WL_Water"] cant find it in the list. in the air_defense.json there is also "guard_layer":"WL_Air","unit_types" like it is in all the other land unit files so i dont know what the target layer is for. then i have found "physics" with "layer" but: layer is unused...so what is it then? would be very nice if someone could answer my questions. I'm not a modder, I'm just interested in "how things work". in SupCom i changed some files, but i have never created something new. So...I'm not an expert in modding, that's why I'm asking^^
This list you want is viewtopic.php?f=72&t=47537, although it's not complete. It's the weapon files that determine what layers a weapon can fire at.
cool, thanks for that. but why is the target_layer only inside the AA-Defense weapon? its not in the AA Bot weapon, or in the AA Vehicle weapon, that's what confuses me. also the sea-defense tower don't have Guard neither have the Target...so I'm even more confused here.
Blueprints can have inheritance - if you see a "base_spec" attribute, then it will take the values of the blueprint specified there if they aren't specifically listed. The AA Vehicle, for example, inherits from /pa/tools/base_missile_turret/base_missile_turret.json.
noticed that, all the blueprints have that. i think i understand now. they load the base files and modify some values after that. if i understand it correctly, target_layer defines what the weapon can shoot at, and guard_layer defines where it looks for targets? for example the floating laser, there is also no Guard_Layer, even if its land-version have it. the base structure has also none of it, also the weapon has no target_layer, but the base_laser_turret has a target layer, Land Water and Air. so, i think that's the reason why they can target air units (last priority)? or the aa defense, it's weapon loads the base_missile_turret file who can target Land, Water and Air too. but whats the reason for the guard_layer then? the laser turret has guard_layer WL_Land, but no WL_Air, so it should not look for targets in the air, but still it shoots at them. i think its the same with aa defense who has WL_Air but no WL_Land (never seen it shooting at land units, because ai doesn't build them)