Author Topic: Disable BottomPrint on Spy [Solved]  (Read 2262 times)

I have a couple mods that make use of the orbit camera. I've been getting around the observer count notification using a blank bottomprint right after, but that causes problems for mods that have a constant bottomprint already. Port gave me a function at one point but I lost it when my HDD got corrupted.
« Last Edit: November 21, 2014, 09:51:16 AM by tommybricksetti »


Here's a slight adjustment to fix the -n observers.
Code: [Select]
function SimObject::onCameraEnterOrbit(%obj,%camera)
{
%obj.observerCount = %obj.observerCount++;
}
function SimObject::onCameraLeaveOrbit(%obj,%camera)
{
%obj.observerCount = %obj.observerCount--;
}

Code: [Select]
%obj.observerCount = %obj.observerCount++;

%x++ will increase x by one. You don't need to set it as well.

Code: [Select]
%obj.observerCount++;

is all you need.