Using a temp variable while panning a camera

Discussion in 'World Editor Help' started by Super.Gnome, Oct 8, 2009.

  1. Super.Gnome

    Super.Gnome New Member

    Ratings:
    +0 / 0 / -0
    Does this work?

    Trigger:
    • Set TempPoint = (Position of (Reviving Hero))
      • Camera - Pan camera for (Owner of (Reviving Hero)) to TempPoint over 0.60 seconds
      • Custom script: call RemoveLocation (udg_TempPoint)


    Or will it bug if I use my "TempPoint" variable during the 0.6 seconds of that I'm panning the camera?
     
  2. jackall

    jackall You can change this now in User CP.

    Ratings:
    +39 / 0 / -0
    add a wait between Camera action and CS and it shouldn't bug
     
  3. Komaqtion

    Komaqtion You can change this now in User CP.

    Ratings:
    +469 / 0 / -0
    It won't bug, either way ;)
    Just that it'll leak if you do what jackal said...
     
  4. Super.Gnome

    Super.Gnome New Member

    Ratings:
    +0 / 0 / -0
    This seems completely counter-intuitive. Wouldnt that make it leak though?


    Edit: Komaqtion beat me to it.
     
  5. jackall

    jackall You can change this now in User CP.

    Ratings:
    +39 / 0 / -0
    sorry about that, i cant think anymore
    "i dont know why im finding... thinking about stuff hard these days............ maybe im in love(that would be very sad)" thats my messenger status, idk whats wrong with me lately so....... i guess i wont reply unless im pretty sure about my suggests
     
  6. Komaqtion

    Komaqtion You can change this now in User CP.

    Ratings:
    +469 / 0 / -0
    Doesn't sound good :(
    Well, it's no problems ;)
    As long as there's someone there to correct you, post om :thup: :D
     
  7. SyrisX

    SyrisX New Member

    Ratings:
    +3 / 0 / -0
    Nub question of the day.. Do all "waits" leak?
     
  8. azareus

    azareus And you know it.

    Ratings:
    +63 / 0 / -0
    No, some jass (don't remember what ones:p) don't.
     
  9. HydraRancher

    HydraRancher Truth begins in lies

    Ratings:
    +197 / 0 / -0
    Most do, but some GUI dont. Example:

    Trigger:
    • Trigger
      • Events
        • Unit - A unit is issued an order targetting a point
      • Conditions
      • Actions
        • Wait 10.00 Seconds
        • Unit - Kill (Triggering Unit)
        • Game - Display text message to (All Players): (Name of (Triggering Unit))


    Now, get 2 units, and order them to move one after the other, one will die first, and the other will die next. If you move a footman then a knight it'll say:

    Footman
    Knight

    If you move, rifleman, footman, knight, priest, scorceress, it'll say that in the exact order.

    (Triggering Unit) is MUI, as are a few other Event Responses.
     

Share This Page