[Trigger] Retrieving Previous Unit

Level 5
Joined
Feb 14, 2005
Messages
48
Hi.

In a camera system I have made, and is still improving, there is a problem with turning off the camera.

The problem is when I turn off the system in game, and then I turn it on again, the camera zooms to the center of the map. I figure that the problem with this, is because the location of the camera target is removed when the system is turned off by the player.

I need a way to retrieve the previous unit, when the system reactivates, so that the camera doesn't just fix onto the center of the map.
 
Level 5
Joined
Feb 14, 2005
Messages
48
There isn't a GetPreviousUnit() function.

I could use the gamecache, but for something like this, it's not really worth it.

But I probably could use the temp variable thing...
 
Top