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

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