WirtsLegs Posted July 24, 2024 Posted July 24, 2024 Pretty simple request, currently there is a trigger action called "UNIT AI SET LIFE" if this function could be exposed to the LUA api that would be incredibly useful for a variety of scripts/scenarios 2
Gunfreak Posted July 24, 2024 Posted July 24, 2024 What does "UNIT AI SET LIFE" Does it what it sounds like. You can specify how much "health/life" an AI unit has? I'm asking as this sounds interesting, as some units have way too much health (like the German uboat that can take several 500lb bombs ) i7 13700k @5.2ghz, GTX 3090, 64Gig ram 4800mhz DDR5, M2 drive.
WirtsLegs Posted July 24, 2024 Author Posted July 24, 2024 3 minutes ago, Gunfreak said: What does "UNIT AI SET LIFE" Does it what it sounds like. You can specify how much "health/life" an AI unit has? I'm asking as this sounds interesting, as some units have way too much health (like the German uboat that can take several 500lb bombs ) yeah basically you can set a units life to a percentage of its max, essentially let you apply damage (or remove it) on the fly to AI units without needing to actually hit them with a weapon 1
Gunfreak Posted July 24, 2024 Posted July 24, 2024 1 minute ago, WirtsLegs said: yeah basically you can set a units life to a percentage of its max, essentially let you apply damage (or remove it) on the fly to AI units without needing to actually hit them with a weapon Excellent, there are definitely some units that take too much damage, like the previous mentioned uboat, but also the 3 other ww2 ships in the game. Also some stuff like ww2 AT guns, I assume if you just want them to take less punishment You just add "at mission start" and add UNIT AI SET LIFE. No need for anything else? i7 13700k @5.2ghz, GTX 3090, 64Gig ram 4800mhz DDR5, M2 drive.
WirtsLegs Posted July 24, 2024 Author Posted July 24, 2024 39 minutes ago, Gunfreak said: Excellent, there are definitely some units that take too much damage, like the previous mentioned uboat, but also the 3 other ww2 ships in the game. Also some stuff like ww2 AT guns, I assume if you just want them to take less punishment You just add "at mission start" and add UNIT AI SET LIFE. No need for anything else? yeah that should do it just know that if you get fancy and do it later in the mission if you try to set life on a unit thats dead and burning (not fully gone yet) it will revive it but break the groups AI and it will just stop working 1
Kappa-131st Posted October 9, 2024 Posted October 9, 2024 @ED : Can you give us an LUA function to use SET AI UNIT LIFE ? Ex : Unit.setLife(Class Self, number ) 1
Migow Posted October 25, 2024 Posted October 25, 2024 On 10/9/2024 at 11:41 PM, Kappa-131st said: @ED : Can you give us an LUA function to use SET AI UNIT LIFE ? Ex : Unit.setLife(Class Self, number ) Please ED we need this function asap please if it does exist with a trigger then it could be implemented easy way! 1 member of 06 MHR / FENNEC Mi-24P
Dovivan Posted January 14 Posted January 14 (edited) need this function too. Trigger works @Wags @NineLine Edited January 14 by Dovivan 1 2
Recommended Posts