• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Retrieving Previous Unit

Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Top