Camera Panning Help

Azrooh

New Member
Reaction score
5
So, I'm trying to make it so when you cast a spell the camera (of all players) pans to the place the spell was cast.
Instead, it pans to the center of the map and I can't figure out what's causing it.

Trigger:
  • --Events:--
    • Unit - A unit Finishes casting an ability
    • --Conditions:--
    • (Ability being cast) Equal to Force Cameras
    • --Actions:--
    • Set PowerPoint = (Target point of ability being cast)
    • Region - Center CameraMoveRegion <gen> on PowerPoint
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • Camera - Pan camera for (Picked player) to (Center of CameraMoveRegion <gen>) over CameraTime seconds
    • Custom script: call RemoveLocation (udg_PowerPoint)



Use starts the effect of an ability instead as an event.
The problem with the event that you are using is that when the event fires, "Target point of ability being cast" is already lost.

Awesome, this works, thanks.
 

BlueMirage

Trust, but doubt.
Reaction score
39
Use starts the effect of an ability instead as an event.
The problem with the event that you are using is that when the event fires, "Target point of ability being cast" is already lost.
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
also your use of a region in an attempt to evade a memory leak is hilarious

here are a few hints:
1). you leak the region
2). you don't need a region, just a location
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top