[Trigger] Pan Camera Problem

SwedishChef

New Member
Reaction score
32
Okey I gotta go in a second so I will race through my explanation. I just want a trigger where the camera pans to a location and then gives a hint about an unit. But it works in one trigger but not in the other.

The one which don't work:

Trigger:
  • Teleport From Ready 2
    • Events
      • Unit - A unit enters Ready <gen>
    • Conditions
      • Move_ok Equal to False
    • Actions
      • Set MyUnitGroup = (Units in Ready <gen>)
      • Set MyLocation = (Center of Item Area <gen>)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units in Ready <gen>)) Equal to (Number of players in All_Players)
        • Then - Actions
          • Set Move_ok = True
          • Countdown Timer - Pause ChooseHero
          • Countdown Timer - Destroy (Last created timer window)
          • Trigger - Turn off Timer Expires <gen>
          • Unit Group - Pick every unit in MyUnitGroup and do (Actions)
            • Loop - Actions
              • Set Has_Moved[(Player number of (Owner of (Picked unit)))] = True
              • Multiboard - Set the text for (Last created multiboard) item in column 1, row Multiboard_Spots[(Player number of (Owner of (Picked unit)))] to (Player_Colors[(Player number of (Owner of (Picked unit)))] + ((Name of (Owner of (Picked unit))) + |r))
              • Hero - Modify unspent skill points of (Picked unit): Set to 1 points
              • Player - Set (Owner of (Picked unit)) Current gold to 350
              • Unit - Move (Picked unit) instantly to MyLocation
              • Camera - Pan camera for (Owner of (Picked unit)) to MyLocation over 0.00 seconds
              • Special Effect - Create a special effect at MyLocation using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
              • Special Effect - Destroy (Last created special effect)
              • Unit - Create 1 Stash (dummy) for (Owner of (Picked unit)) at MyLocation facing Default building facing degrees
              • Unit - Remove HeroChooseDummy[(Player number of (Owner of (Picked unit)))] from the game
              • Custom script: call RemoveLocation(udg_MyLocation)
              • Set MyLocation = (Position of Stash[(Player number of (Owner of (Picked unit)))])
              • Camera - Pan camera for (Owner of (Picked unit)) to MyLocation over 1.00 seconds
              • Custom script: call RemoveLocation(udg_MyLocation)
          • Quest - Display to (All players) the Quest Update message: This is your stash....
          • For each (Integer A) from 1 to 11, do (Floating Text - Destroy Text[(Integer A)])
          • Trigger - Run New Round <gen> (checking conditions)
          • Trigger - Turn off (This trigger)
        • Else - Actions
      • Custom script: call RemoveLocation(udg_MyLocation)
      • Custom script: call DestroyGroup(udg_MyUnitGroup)
      • Game - Display to (All players) the text: 2


The one which works:
Trigger:
  • Teleport From Ready
    • Events
      • Unit - A unit enters Ready <gen>
    • Conditions
      • Move_ok Equal to True
      • Has_Moved[(Player number of (Owner of (Triggering unit)))] Equal to False
    • Actions
      • Set MyLocation = (Center of Item Area <gen>)
      • Set Has_Moved[(Player number of (Owner of (Entering unit)))] = True
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row Multiboard_Spots[(Player number of (Owner of (Entering unit)))] to (Player_Colors[(Player number of (Owner of (Entering unit)))] + ((Name of (Owner of (Entering unit))) + |r))
      • Player - Set (Owner of (Entering unit)) Current gold to 350
      • Hero - Modify unspent skill points of Hero[(Player number of (Owner of (Entering unit)))]: Set to 1 points
      • Unit - Move (Entering unit) instantly to MyLocation
      • Unit - Create 1 Stash (dummy) for (Owner of (Triggering unit)) at MyLocation facing Default building facing degrees
      • Camera - Pan camera for (Owner of (Entering unit)) to MyLocation over 0.00 seconds
      • Special Effect - Create a special effect at MyLocation using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Remove HeroChooseDummy[(Player number of (Owner of (Triggering unit)))] from the game
      • Custom script: call RemoveLocation(udg_MyLocation)
      • Set MyLocation = (Position of Stash[(Player number of (Owner of (Triggering unit)))])
      • Camera - Pan camera for (Owner of (Triggering unit)) to MyLocation over 1.00 seconds
      • Quest - Display to (Player group((Owner of (Triggering unit)))) the Quest Update message: This is your stash....
      • Custom script: call RemoveLocation(udg_MyLocation)
      • Custom script: call DestroyGroup(udg_MyUnitGroup)
      • Game - Display to (All players) the text: 1


So what is the problem?
 

Lifee

New Member
Reaction score
46
replace owner of picked unit with this
Trigger:
  • Camera - Pan camera for (Owner of (Entering unit)) to (Center of (Playable map area)) over 0.00 seconds
or
Trigger:
  • Camera - Pan camera for (Owner of (Triggering unit)) to (Center of (Playable map area)) over 0.00 seconds
i think it should work with one of these if it didnt work with owner of picked unit
 

SwedishChef

New Member
Reaction score
32
I want to pan the camera to the "Stash" unit. But this only works in the second trigger not in the first. Why?
 

SwedishChef

New Member
Reaction score
32
Yes the Game Messaged (1 and 2) are being displayed and all other actions work just fine.

E: Also the Quest Message is displayed as it should. Only Pan Camera which dosn't work.
 

X.Terror.X

New Member
Reaction score
10
in trigger 2 u got a panning camera to a point over 1 second
its used picked unit but there was never a unit been picked..
so that one isnt working but that was not your problem


add a small wait timer?
somethime it might be able the unit triggers the region but isnt triggered within the region yet


this is the main problem i think
Code:
(Number of units in (Units in Ready <gen>)) Equal to (Number of players in All_Players)


u exspect all players got 1 unit
but u creating units (dummies) witch you dont see but are there!
get a unit group with all player (main) units that should be in that region


Edit*

i think you ask him to pan a camera to a picked unit and this picked unit u just removed some lines before
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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