BCush83 Posted April 13, 2024 Posted April 13, 2024 (edited) I have an ACM combat zone with progressively harder enemies spawning; I'd like the players aircraft to re-arm and re-fuel when the enemy is killed as the next enemy spawns in, without having to land if still alive. Is this possible? Perhaps a command or line of code triggered by a flag or unit dead? Edited April 13, 2024 by BCush83
Exorcet Posted April 13, 2024 Posted April 13, 2024 I think the only way this can happen is if players reslot if in multiplayer, or they jump to a new plane in single player. Awaiting: DCS F-15C Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files
Tippis Posted April 13, 2024 Posted April 13, 2024 Not without resorting to infinite weapons and fuel, and depending on the module and whether you want the player to be able to run out during an individual wave, this will of course potentially create problems of their own. ❧ ❧ Inside you are two wolves. One cannot land; the other shoots friendlies. You are a Goon. ❧ ❧
TEMPEST.114 Posted April 13, 2024 Posted April 13, 2024 (edited) The way that DCS works is that everything exists in a huge table. That table was created in the M.E. You can't CHANGE anything that is already in the table. You can ADD to the table (i.e. spawn units) and those units/groups etc ALREADY IN the table can die etc, but you cannot change anything in the table. You can't change your livery once you're in the air, you can't change weapons once you're in the air etc. The only exceptions are the special ED screens - eg Rearm/Refuel but ED have sole control over that and nothing about it is exposed to the M.E or scripting environment. You can't add another aircraft to your group when you're on the ground via the ME or the scripting environment because the table is fixed. So, like @Tippis said; the only option is setting infinite on in the M.E or game settings BEFORE you fly, but you can't change that once the game is loaded. Or do like @Exorcet and have Air Start aircraft waiting on other slots ready to jump into after you've done with a round. That works. I had a mission in mind where you dogfight with your wing for about 30mins and you shoot real weapons at each other, but you don't die and don't lose weapons, and then after that you get tasking to a 'real' mission and then you're no longer invincible and weapons don't respawn; but it's impossible with the sim as it is. You can't toggle that stuff on and off. Edited April 13, 2024 by Elphaba
toutenglisse Posted April 14, 2024 Posted April 14, 2024 16 hours ago, BCush83 said: I have an ACM combat zone with progressively harder enemies spawning; I'd like the players aircraft to re-arm and re-fuel when the enemy is killed as the next enemy spawns in, without having to land if still alive. Is this possible? Perhaps a command or line of code triggered by a flag or unit dead? There is an option with script, that is "respawning" your aircraft with updated position and vector, but can only work in single player, and is probably a bit "dirty" in action. Little test attached (2 client slots to choose from on runway, F16 and F18, and when you kill the mig29 you have a 10sec delay and respawn in air where you are - mig29 also respawns). test-restore-player-AC-on-kill.miz
Recommended Posts