public void TurretShapeDataOnMountObject(coTurretShapeData thisobj, coTurretShape turret, coShapeBase player, int node) { if (turret["entranceThread"].AsInt() < 0) { return; } int et = turret["entranceThread"].AsInt(); turret.setThreadDir(et, false); turret.setThreadPosition(et, 0); turret.playThread(et, ""); }
public void TurretShapeDataOnUnmountObject(coTurretShapeData thisobj, coTurretShape turret, coShapeBase player) { if (turret["entranceThread"].AsInt() < 0) { return; } int et = turret["entranceThread"].AsInt(); // Play the entrance thread backwards for an exit turret.setThreadDir(et, false); turret.setThreadPosition(et, (float)1.0); turret.playThread(et, ""); }