Ilias38rus 5 Posted January 17, 2016 How to? ```determine is unit a medic Share this post Link to post Share on other sites
cybercoco 16 Posted January 17, 2016 I think there are only three types of medic : "B_medic_F" "B_recon_medic_F" "B_G_medic_F" if ( (typeOf player == "B_medic_F") or (typeOf player == "B_recon_medic_F") or (typeOf == "B_G_medic_F") ) then {hint "I'm a medic"} else {hint "I'm not a medic"}; Share this post Link to post Share on other sites
Ilias38rus 5 Posted January 17, 2016 I think there are only three types of medic : "B_medic_F" "B_recon_medic_F" "B_G_medic_F" if ( (typeOf player == "B_medic_F") or (typeOf player == "B_recon_medic_F") or (typeOf == "B_G_medic_F") ) then {hint "I'm a medic"} else {hint "I'm not a medic"}; thanks, but know it '`If using mods? should be some way to determine the abbilitiies Share this post Link to post Share on other sites
jshock 513 Posted January 17, 2016 Look up the classnames of the medic for the mods you use. Share this post Link to post Share on other sites
Larrow 2820 Posted January 17, 2016 If their using the standard BI way then.. isMedic = getNumber ( configFile >> "CfgVehicles" >> typeOf _unit >> "attendant" ) isEqualTo 1; isEngineer = getNumber ( configFile >> "CfgVehicles" >> typeOf _unit >> "engineer" ) isEqualTo 1;Although this is potential incorrect if you are using some non standard medical/enginnering mod, but this is what as standard denotes whether a unit can do medical/engineer tasks. Share this post Link to post Share on other sites
Ilias38rus 5 Posted January 17, 2016 If their using the standard BI way then.. isMedic = getNumber ( configFile >> "CfgVehicles" >> typeOf _unit >> "attendant" ) isEqualTo 1; isEngineer = getNumber ( configFile >> "CfgVehicles" >> typeOf _unit >> "engineer" ) isEqualTo 1;Although this is potential incorrect if you are using some non standard medical/enginnering mod, but this is what as standard denotes whether a unit can do medical/engineer tasks. Thank you Share this post Link to post Share on other sites
Marcel1802 2 Posted December 27, 2017 Trying to make a pilot restriction script which works in the same way My problem is that if I type 'typeOf player == "B_pilot_F";' into the debug console, it says 'false'. I am "B_soldier_F" it says. I placed "B_soldier_F" with the editor, but I am using the "new" respawn system where you can choose the class and respawn location while respawning. (Example picture of the system from this forum) Anyone has ideas? Thank you. Share this post Link to post Share on other sites
Tankbuster 1744 Posted December 27, 2017 On 17/01/2016 at 5:01 PM, Larrow said: If their using the standard BI way then.. isMedic = getNumber ( configFile >> "CfgVehicles" >> typeOf _unit >> "attendant" ) isEqualTo 1; isEngineer = getNumber ( configFile >> "CfgVehicles" >> typeOf _unit >> "engineer" ) isEqualTo 1; Although this is potential incorrect if you are using some non standard medical/enginnering mod, but this is what as standard denotes whether a unit can do medical/engineer tasks. https://community.bistudio.com/wiki/getUnitTrait 2 Share this post Link to post Share on other sites
Marcel1802 2 Posted January 7, 2018 On 27.12.2017 at 7:14 PM, Tankbuster said: https://community.bistudio.com/wiki/getUnitTrait Thank you 1 Share this post Link to post Share on other sites