[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
  • 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 The Helper:
    Happy Thursday!
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top