983 {
985 string part_cfg_path =
"cfgVehicles" +
" " +
GetParent().GetType() +
" "+
"Construction" +
" " + construction_part.
GetMainPartName() +
" " + construction_part.
GetPartName() +
" " +
"dismantle_action_type";
986 if (
GetGame().ConfigIsExisting( part_cfg_path ) )
987 {
989 string tool_cfg_path = "cfgVehicles" + " " + tool.GetType() + " " + "dismantle_action_type";
990
991 if (
GetGame().ConfigIsExisting( tool_cfg_path ) )
992 {
994
995 if ( ( part_dismantle_action_type & tool_dismantle_action_type ) > 0 )
996 {
997 return true;
998 }
999 }
1000 }
1001
1002 return false;
1003 }
ConstructionPart GetConstructionPart(string part_name)
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto native CGame GetGame()