How could I check if a collision was with a tire? Also, I have a problem with my Land mine add on. I am trying to make it so when you place a land mine on top of another land mine, it doesn't explode. Here is the if statement before making it explode:
if(%col.getType() & $TypeMasks::VehicleObjectType && $IsColAMine !$= "LandmineCol"
And here is what $IsColAMine is;
$IsColAMine = %col.getDatablock().getName();
Now if you type: talk(mineobjectID.getDatablock().getname()); the console repeats in the chat LandmineCol. So I don't know why this doesn't work, it makes it so if the collision object is a vehicle at all, it wont explode. What is wrong with it?