960 {
962 string part_cfg_path =
"cfgVehicles" +
" " +
GetParent().GetType() +
" "+
"Construction" +
" " + construction_part.
GetMainPartName() +
" " + construction_part.
GetPartName() +
" " +
"build_action_type";
963 if (
GetGame().ConfigIsExisting( part_cfg_path ) )
964 {
966 string tool_cfg_path = "cfgVehicles" + " " + tool.GetType() + " " + "build_action_type";
967
968 if (
GetGame().ConfigIsExisting( tool_cfg_path ) )
969 {
971
972 if ( ( part_build_action_type & tool_build_action_type ) > 0 )
973 {
974 return true;
975 }
976 }
977 }
978
979 return false;
980 }
ConstructionPart GetConstructionPart(string part_name)
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto native CGame GetGame()