• 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.

Zoom

Status
Not open for further replies.
There is a circle of power at each player's base in my map and I used two tunt's as custom ability and named them 'Zoom in' and 'Zoom out'. Then I have these triggers:
Events
Unit - A unit Begins casting an ability

Conditions
<emty>

Actions
If ((Ability being cast) Equal to Zoom out ) then do (Camera - Set (Owner of (Casting unit))'s camera Distance to target to ((Distance to target of (Current camera)) + 250.00) over 0.30 seconds) else do (Do nothing)

If ((Ability being cast) Equal to Zoom in ) then do (Camera - Set (Owner of (Casting unit))'s camera Distance to target to ((Distance to target of (Current camera)) - 250.00) over 0.30 seconds) else do (Do nothing)
---------------------------------------------------------------

For some reason, when I zoom in, the camera zooms out! any help please?

O.O!!! NOW I'M CONFUSED!!! If I copy and paste the second line 'zoom in' then it looks just like the first line! WHY??
---------
nevermind I found the problem: if you have 2 custom abilities based on the same ability, bad things happens.
 
Last edited by a moderator:
Status
Not open for further replies.
Top