• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Fixed camera when klicking on worker

Status
Not open for further replies.
Level 2
Joined
Oct 30, 2012
Messages
6
As the name of this thread describes, I need to fix camera movement when someone click on "worker", which is a magic box. It's quite annoying to move a camera around trying to understand where your hero is after every click on the magic box.

I was trying to create a unit without game model and shadow.

I'm not sure if this supposed to be working, but it doesn't:

  • time - Every 0.10 seconds of game time
  • Set AUpoint[1] = (Center of (Current camera bounds))
  • Unit - Move MagicBox[1] instantly to AUpoint[1]
Any suggestions?
 
I need a tooltip for quick access to the magic. I did it like this and it works... not for all players though.

  • Magic box
    • Time - Every 0.10 seconds of game time
    • Set Allplayers = 1
    • Player group - Pick every player in (All players) and do (Actions)
    • Loop
      • Set CameraPoint[Allplayers] = (Target of current camera view)
      • Unit - Move MagicBox[Allplayers] instantly to CameraPoint[Allplayers]
      • Set Allplayers = (Allplayers + 1)

How can I correctly register all players's camera view without mashing it like this?
 
Status
Not open for further replies.
Back
Top