- Joined
- Mar 1, 2013
- Messages
- 555
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.
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: