• 🏆 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!

Idle Worker problem

Status
Not open for further replies.
Level 6
Joined
Oct 1, 2012
Messages
166
Heloes Hive Workshop

Weird words in the title, but my case is not really a big deal. The thing is, whenever I click 'The idle workder (F8)' icon, the camera focuses on him.

Is there a way to make it not do so? 'Idle worker' in my map has a function of being a dummy unit, hidden n' all, but with special functions, so having a game show everybody where my hidden unit hides kinda misses the point.

Game constants didn't help me. I had an idea of saving current camera screen for every player every 0.1 secs and when the 'idle worker' is selected, the camera would swap back, but this can collide and save current view as the guy's position and thus, miss the point.

Any ideas, please?
 
Level 6
Joined
Oct 1, 2012
Messages
166
But then he will not be able to be selected by F8, and that is what I want.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
When the player selects the idle worker, use triggers to select the unit you want to restore the camera to and lock the camera to the unit, unlock it, then select the idle worker.
 
Level 6
Joined
Oct 1, 2012
Messages
166
Well, yeah, but it won't work, as the camera can be anywhere, not just on some unit. The map is dota-like with heroes aiding fighting troops, the Idle worker is a dummy unit used to empower the hero, quite dinamically at times, so it can get irritating when, in the middle of the fight a player wants to cast some additional spell from Idle Worker dummy and the camera focused nobody-knows-where.

If there's no way to do it, I'll just focus the camera on the hero, but it will not be flawless as I'd wish it to be :D
 
Status
Not open for further replies.
Top