Results 1 to 7 of 7

Thread: How to find out if a unit is "inagony"

  1. #1

    How to find out if a unit is "inagony"

    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.

  2. #2
    Quote Originally Posted by Rejenorst View Post
    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:
    Code:
    _someUnit getVariable "BIS_IS_inAgony"
    The robust answer is to use a function similar to this:
    Code:
    _fInAgony =
    {
        private ["_inAgony"];
        
        _inAgony = _this getVariable "BIS_IS_inAgony";
        if (isNil "_inAgony") then
        {
            _inAgony=false;
        };
        _inAgony
    };
    and call it via something like
    Code:
    _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.
    Last edited by Killswitch; Nov 12 2009 at 09:33. Reason: Code snippet fixup
    The confidence of ignorance will always overcome indecision of knowledge.

  3. #3
    Brilliant!!!! thank you so much for that

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

  4. #4
    Quote Originally Posted by Rejenorst View Post
    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.

  5. #5
    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.

  6. #6
    Quote Originally Posted by Rejenorst View Post
    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;
    };
    };

  7. #7
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •