Blackjack_UK Posted September 12, 2022 Posted September 12, 2022 Hi, I'd like to be able to place buildings, bridges and the like and make them viable targets. I know fuel tanks and some buildings will respond to being rocketed or bombed, but is there a list somewhere of what I can set as a target either for a player or for the enemy? Thanks [sIGPIC][/sIGPIC]
toutenglisse Posted September 12, 2022 Posted September 12, 2022 4 minutes ago, Blackjack_UK said: Hi, I'd like to be able to place buildings, bridges and the like and make them viable targets. I know fuel tanks and some buildings will respond to being rocketed or bombed, but is there a list somewhere of what I can set as a target either for a player or for the enemy? Thanks Page 129 of DCS\Doc\DCS User Manual EN 2020.pdf : MAP OBJECT IS DEAD. This trigger condition checks if the map object (building, construction, bridge, etc.) is destroyed. When selecting this condition, you must specify the name of the trigger zone, which has been assigned to the map object via RMB click on it. 1
Blackjack_UK Posted September 12, 2022 Author Posted September 12, 2022 1 hour ago, toutenglisse said: Page 129 of DCS\Doc\DCS User Manual EN 2020.pdf : MAP OBJECT IS DEAD. This trigger condition checks if the map object (building, construction, bridge, etc.) is destroyed. When selecting this condition, you must specify the name of the trigger zone, which has been assigned to the map object via RMB click on it. Thanks,. but not entirely what I meant. I want to be able to destroy a building with rockets or have the enemy (for example) shell it with artillery and destroy as a mission success/failure trigger... [sIGPIC][/sIGPIC]
toutenglisse Posted September 12, 2022 Posted September 12, 2022 1 hour ago, Blackjack_UK said: Thanks,. but not entirely what I meant. I want to be able to destroy a building with rockets or have the enemy (for example) shell it with artillery and destroy as a mission success/failure trigger... If you want AI to fire at a map object, you can use "fire at point" for ground units, or "bombing" for aircraft units. To detect that the map object you selected by creating an assigned zone via RMB click is dead, and so for example trigger a flag that will in turn trigger mission success/failure, you need to use this trigger condition "MAP OBJECT IS DEAD". If that is not what you want than I fail to understand.
Blackjack_UK Posted September 12, 2022 Author Posted September 12, 2022 4 hours ago, toutenglisse said: If you want AI to fire at a map object, you can use "fire at point" for ground units, or "bombing" for aircraft units. To detect that the map object you selected by creating an assigned zone via RMB click is dead, and so for example trigger a flag that will in turn trigger mission success/failure, you need to use this trigger condition "MAP OBJECT IS DEAD". If that is not what you want than I fail to understand. Thanks, I understand that part. I know I can set a ground unit to fire at a point and destroy it using triggers. I also want to be able to set a building as a target for a player flight - imagine for example that I want to vaguely recreate the raid on the prison at Amiens or attack a specific house in Aleppo or...well hopefully you see what I mean. [sIGPIC][/sIGPIC]
Dangerzone Posted September 13, 2022 Posted September 13, 2022 (edited) 11 hours ago, Blackjack_UK said: Thanks, I understand that part. I know I can set a ground unit to fire at a point and destroy it using triggers. I also want to be able to set a building as a target for a player flight - imagine for example that I want to vaguely recreate the raid on the prison at Amiens or attack a specific house in Aleppo or...well hopefully you see what I mean. Can you expand on what you mean by 'set' a building as a particular target? My assumption is that you want to choose a particular building to be a target and then know when it's been destroyed. I would have thought @toutenglissefirst response answers how to do this. Assign building to a zone via right mouse button click in the ME, and then use MAP OBJECT IS DEAD. Otherwise if you mean how to tell the player about a building - you could either add it as a waypoint into the flight, give the player co-ordinates, etc. Edited September 13, 2022 by Dangerzone
Blackjack_UK Posted September 13, 2022 Author Posted September 13, 2022 (edited) 3 hours ago, Dangerzone said: Can you expand on what you mean by 'set' a building as a particular target? My assumption is that you want to choose a particular building to be a target and then know when it's been destroyed. I would have thought @toutenglissefirst response answers how to do this. Assign building to a zone via right mouse button click in the ME, and then use MAP OBJECT IS DEAD. Otherwise if you mean how to tell the player about a building - you could either add it as a waypoint into the flight, give the player co-ordinates, etc. Sorry, let me give a specific example. Imagine a mission where your objective is a surgical strike to eliminate a known target in a specific building. Put (for instance) "Small House 1b" in a bunch of other placeable structures or in an existing town on the map. This is your target. Drop an LGB on it or hit it with a Hellfire or Vikhr or whatever. Can you "kill" the building and therefore achieve the mission directly? Or do you have to cheat and say if a rocket/bomb/missile arrives in a certain trigger zone then mark the building as dead and trigger "Large fire with smoke" And if you can kill the building, (and I believe some buildings you can, some you can't) then is there a list of ones you can kill? I'd also like to be able to drop a bridge as a mission to prevent an advance or cut resupply lines... Cheers Edited September 13, 2022 by Blackjack_UK [sIGPIC][/sIGPIC]
toutenglisse Posted September 13, 2022 Posted September 13, 2022 36 minutes ago, Blackjack_UK said: ...Can you "kill" the building and therefore achieve the mission directly? Or do you have to cheat... I'd also like to be able to drop a bridge as a mission to prevent an advance or cut resupply lines... Cheers Yes you can destroy it. You can see in the following database that all "statics" that you can add to map have lifepoints. "Small House 1b" for example has 50 lifepoints. Some "statics" have very high number of lifepoints and are very hard to destroy (ex : command center has 10000 lifepoints and requires something like 9 x 2000lbs bomb to be destroyed). DCS-miscScripts/Small house 1B.lua at master · mrSkortch/DCS-miscScripts · GitHub You can detect their destruction with trigger's condition : "unit destroyed" like for any other unit. Objects that are part of the map (buildings, bridges, ...) can also be destroyed for most of them (and destruction can be detected with MAP OBJECT IS DEAD) but som can't, and there is no list. But you can verify if it can be destroyed using 2 ways : 1) RMB click on it / "assign as". If it works and create a zone on object's limit, you usually can destroy it (but some building still can't be destroyed, and some objects like some bridges in Syria can't be "assign as" because they are part of the ground, not objects) 2) put a trigger zone that covers the place of interest and use a trigger "once" / Time>1 / SCENERY DESTRUCTION ZONE (your zone, 100%), place a ground unit nearby so you can set camera on zone with F7, launch mission and see the zone : objects that can't be destroyed won't be destroyed. 1
Blackjack_UK Posted September 13, 2022 Author Posted September 13, 2022 1 hour ago, toutenglisse said: Yes you can destroy it. You can see in the following database that all "statics" that you can add to map have lifepoints. "Small House 1b" for example has 50 lifepoints. Some "statics" have very high number of lifepoints and are very hard to destroy (ex : command center has 10000 lifepoints and requires something like 9 x 2000lbs bomb to be destroyed). DCS-miscScripts/Small house 1B.lua at master · mrSkortch/DCS-miscScripts · GitHub You can detect their destruction with trigger's condition : "unit destroyed" like for any other unit. Objects that are part of the map (buildings, bridges, ...) can also be destroyed for most of them (and destruction can be detected with MAP OBJECT IS DEAD) but som can't, and there is no list. But you can verify if it can be destroyed using 2 ways : 1) RMB click on it / "assign as". If it works and create a zone on object's limit, you usually can destroy it (but some building still can't be destroyed, and some objects like some bridges in Syria can't be "assign as" because they are part of the ground, not objects) 2) put a trigger zone that covers the place of interest and use a trigger "once" / Time>1 / SCENERY DESTRUCTION ZONE (your zone, 100%), place a ground unit nearby so you can set camera on zone with F7, launch mission and see the zone : objects that can't be destroyed won't be destroyed. Perfect, that's exactly what I needed. Thanks. [sIGPIC][/sIGPIC]
Recommended Posts