Jump to content

Recommended Posts

Posted

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

  • Thanks 2
Posted

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.

Posted
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

  • Thanks 1
Posted
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.

Posted
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

  • Thanks 1
  • 2 months later...
  • 3 weeks later...
Posted
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!

  • Thanks 1

member of 06 MHR /  FENNEC Mi-24P

  • 2 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...