• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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