thy_ 182 Posted August 28, 2022 Hey there, hope this message finds you well. I just read a bit around this below, but no clue how I'll know through the code if the player's vehicle is amphibious. All I want is a bool value as a return. https://community.bistudio.com/wiki/CfgVehicles_Config_Reference#canFloat I've already investigated: https://community.bistudio.com/wiki/BIS_fnc_objectType https://community.bistudio.com/wiki/isKindOf https://community.bistudio.com/wiki/typeOf Share this post Link to post Share on other sites
fn_Quiksilver 1636 Posted August 28, 2022 _vehicle = vehicle player; private _floatVal = _vehicle getVariable ['TAG_canFloat',-1]; if (_floatVal isEqualTo -1) then { _floatVal = getNumber (configFile >> 'CfgVehicles' >> (typeOf _vehicle) >> 'canFloat'); _vehicle setVariable ['TAG_canFloat',_floatVal]; }; private _canFloat = _floatVal > 0; systemchat str _canFloat; 2 1 Share this post Link to post Share on other sites
thy_ 182 Posted August 28, 2022 16 hours ago, fn_Quiksilver said: _vehicle = vehicle player; private _floatVal = _vehicle getVariable ['TAG_canFloat',-1]; if (_floatVal isEqualTo -1) then { _floatVal = getNumber (configFile >> 'CfgVehicles' >> (typeOf _vehicle) >> 'canFloat'); _vehicle setVariable ['TAG_canFloat',_floatVal]; }; private _canFloat = _floatVal > 0; systemchat str _canFloat; Works as gold. Thanks! Share this post Link to post Share on other sites