Jump to content
Sign in to follow this  
someguy11

model condition under attack

Recommended Posts

Is there a status or model condition for units that are under attack?

(so drones do not attach to/repair units being attacked)

 

And, are FIRING_ANY, TAKING_DAMAGE from BFME2 still working model conditions in KW?

Edited by someguy11

Share this post


Link to post

If they are not in the schematics they are not ingame anymore.

 

You can always try to use the following:

 

ForbiddenParentStatus + IS_FIRING_WEAPON or IS_ENGAGED or IS_ATTACKING

 

Another option is to use a lua event to trigger a modelcondition:

 

OnDamaged > run script

 

something like:

function OnDmgSetCondition(self)

ExecuteAction (UNIT_SET_MODELCONDITION, Self, "USER_30")
end

 

or

 

function OnDmgSetCondition(self)
ExecuteAction (UNIT_SET_MODELCONDITION_FOR_DURATION, Self, "USER_30", "10s" )
end

 

or something along the lines of that, might need to experiment with the variables.

 

You might also be able to use the damageStateList module, but i haven't used that myself yet so not sure if it works or works correctly.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×