Jump to content
Sign in to follow this  
rejenorst

How to find out if a unit is "inagony"

Recommended Posts

Im using the first aid simulation module and am just wondering what the command is to check for a true or false statement if a unit is lieing on the ground in agony?

Also how do you check if a unit is unable to walk due to being shot in the leg? I saw a thread for this ages ago but can't seem to find it.

Share this post


Link to post
Share on other sites
Im using the first aid simulation module and am just wondering what the command is to check for a true or false statement if a unit is lieing on the ground in agony?
The short answer is this:

_someUnit getVariable "BIS_IS_inAgony"

The robust answer is to use a function similar to this:

_fInAgony =
{
   private ["_inAgony"];

   _inAgony = _this getVariable "BIS_IS_inAgony";
   if (isNil "_inAgony") then
   {
       _inAgony=false;
   };
   _inAgony
};

and call it via something like

_someUnit call _fInAgony

Also how do you check if a unit is unable to walk due to being shot in the leg? I saw a thread for this ages ago but can't seem to find it.
Have a look at canStand. Edited by Killswitch
Code snippet fixup

Share this post


Link to post
Share on other sites

Brilliant!!!! thank you so much for that :)

btw is there a list of the BI variables lurking around here somewhere?

Share this post


Link to post
Share on other sites
Brilliant!!!! thank you so much for that :)

btw is there a list of the BI variables lurking around here somewhere?

Not that I know of. One has to dig around in the BIS modules.pbo addon for the inner "secrets" of the modules. :cool:

Share this post


Link to post
Share on other sites

Ah sneaky sneaky. Thanks mate, I am still looking for the variable to change a unit's spoken language over the radio. I have a unit speaking Czech for a particular mission but I wan't him to speak english.

Thanks mate.

Share this post


Link to post
Share on other sites
Ah sneaky sneaky. Thanks mate, I am still looking for the variable to change a unit's spoken language over the radio. I have a unit speaking Czech for a particular mission but I wan't him to speak english.

Thanks mate.

i believe you have to set him up an identity.

somethig like

class CfgIdentities

{

class Father_J

{

name="John Bahoragoth";

face="Face20";

glasses="None";

speaker="male05EN";

pitch=1.1;

};

};

Share this post


Link to post
Share on other sites

Sweet Thank you! you just saved me a lot of time and hassel! I had wondered if it was possible to do it with the setidentity configuration in description.ext, I should have tried this earlier. Will let you know if it pans out. Thanks mate.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×