Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
EddiePrice

Incapacitated condition?

Recommended Posts

Hi guys, this is really a question to the developers.

I'm wondering if there is a condition for when units are incapacitated using the first aid modules? By incapacitated, I mean the crawling/rolling around and bleeding out that occurs when a unit has taken too much damage while being synced to the first aid modules.

The reason I ask is because I’d like to put some features into a mission that require a unit incapacitated = true type condition.

Thanks, I'm loving ArmA2 mission making!

Share this post


Link to post
Share on other sites
 
//--- Unit goes in incapacited mode
_unit setVariable ["BIS_IS_inAgony",true];
//--- Unit goes back to 'normal' (excep red screen filter bug thingy)
_unit setVariable ["BIS_IS_inAgony",false]

Share this post


Link to post
Share on other sites

Wow thanks Benny! How would I go about putting that into a condition then?

Share this post


Link to post
Share on other sites
//--- Return wether true or false.
_unit getVariable "BIS_IS_inAgony";

Share this post


Link to post
Share on other sites
 
//--- Unit goes in incapacited mode
_unit setVariable ["BIS_IS_inAgony",true];
//--- Unit goes back to 'normal' (excep red screen filter bug thingy)
_unit setVariable ["BIS_IS_inAgony",false]

I couldn't get this to work. I tried it on a enemy unit and also myself but

didn't seem to do anything.

Also I see a command to setunconcious, cant seem to get that to work either.

Share this post


Link to post
Share on other sites

You need to get the FA logic running on the unit at last.

Share this post


Link to post
Share on other sites

After doing a little experiment I found a way to make the first aid system a little bit more fun. Put the following in a repeated trigger:

Condition: unitname getVariable "BIS_IS_inAgony"

On Activation: unitname setCaptive true

Now, when a unit is incapacitated, they wont be shot at by the AI, makes things a little bit easier for combat medics I think. Once the unit has returned to a normal state the setcaptive rule is removed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×