Profile type filter in script (resolved).

  1. 8 years ago

    Hello,
    In this code i see you use "vehicle" or "entity".

    ["EAST","vehicle"]] call ALIVE_fnc_getNearProfiles)) > 0);

    I would like to know, beside "vehicle" and "entity", what else can i use?
    Maybe the categories from the Arma 3 CFG (Men, MenRecon , Air...) ?

  2. Edited 8 years ago by SpyderBlack723

    Vehicle and entity are as far as that categorization goes. To get more info, you can use a few hashkeys and functions to determine more information

    // Helper functions/hashes
    _type = [_profile,"type"] call ALIVE_fnc_hashGet;
    _objectType = [_profile,"objectType"] call ALIVE_fnc_hashGet;
    _vehicleClass = [_profile,"vehicleClass"] call ALIVE_fnc_hashGet;
    
    _assignments = [_profile,"entitiesInCommandOf",[]] call ALIVE_fnc_hashGet;
    
    [_vehicleClass] call ALiVE_fnc_isAA
    [_vehicleClass] call ALiVE_fnc_isArtillery
    
    _isPlayer = [_profile,"isPlayer",false] call ALIVE_fnc_hashGet
  3. Wow. Thank you, this is very helpful !

 

or Sign Up to reply!