Code: Select all
void CUnit::UpdateTerrainType()
{
if (curTerrainType != lastTerrainType) {
cob->Call(COBFN_SetSFXOccupy, curTerrainType);
lastTerrainType = curTerrainType;
}
}
Code: Select all
if (inTransport) {
curTerrainType = 0;
return;
}
That may not have been clear... The pelican's transform script functions. That means it is giving a value when terrain changes. Except where the unit is loaded, it is at the very least not sending a value of 0 to the unit when it gets loaded into a transport. Is the variable inTransport failing to be set to true by the transport scripting?
And one more thing, my desire to get the ammo system in the Battletech mod working is strong enough that I will begin stalking SY's until this is fixed.
