function thunderVehicle::onCollision(%this,%obj,%col,%a,%b,%c,%d,%e)
{
messageall('',"\c3Munf Munf\c6: " @ %col.getClassName());
if(%col.getClassName() $= "TerrainBlock")
{
%obj.setvelocity("0 0 10");
}
Parent::onCollision(%this,%obj,%col,%a,%b,%c,%d,%e);
}
The subfunction still isn't working, but the messageAll is. Sadly, so far it only recognizes 2 things: player and "static shape"(window). Terrain must not be a class. Any other ideas?