Zoom trigger problem

CrusherX

New Member
Greetings,

I've had this trigger configured and it somewhat works, however whenever I use it the camera zooms out and goes black, regardless of what value i type.

Also I made sure that ''player types -zoom '' with a space between -zoom so it isn't that unfortunately.

Any ideas?

Trigger:
  • Zoom xxxx
    • Events
      • Player - Player 1 (Red) types a chat message containing -zoom as A substring
      • Player - Player 2 (Blue) types a chat message containing -zoom as A substring
      • Player - Player 3 (Teal) types a chat message containing -zoom as A substring
      • Player - Player 4 (Purple) types a chat message containing -zoom as A substring
      • Player - Player 5 (Yellow) types a chat message containing -zoom as A substring
      • Player - Player 7 (Green) types a chat message containing -zoom as A substring
    • Conditions
    • Actions
      • Camera - Set (Triggering player)'s camera Distance to target to (Real((Substring((Entered chat string), 6, 9)))) over 0.00 seconds



EDIT: The camera goes something like this whenever I type something
 

Attachments

Last edited by a moderator:

jonas

Well-Known Member
Make sure to increase not just the camera height but also the rendering distance. I don't remember the name of that unfortunately.

Another thing: you probably want to create a timer and periodically reset the camera distance. Otherwise as soon as someone scrolls, the camera will reset to defaults.
 

CrusherX

New Member
Make sure to increase not just the camera height but also the rendering distance. I don't remember the name of that unfortunately.

Another thing: you probably want to create a timer and periodically reset the camera distance. Otherwise as soon as someone scrolls, the camera will reset to defaults.
Thank you for your help, but I've found a code online since I couldn't figure this one out and if anyone wants to use it, feel free to (it's not mine) and it works!

Trigger:
  • Zoom
    • Events
      • Player - Player 1 (Red) types a chat message containing -zoom as A substring
      • Player - Player 2 (Blue) types a chat message containing -zoom as A substring
      • Player - Player 3 (Teal) types a chat message containing -zoom as A substring
      • Player - Player 4 (Purple) types a chat message containing -zoom as A substring
      • Player - Player 5 (Yellow) types a chat message containing -zoom as A substring
      • Player - Player 7 (Green) types a chat message containing -zoom as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 5)) Equal to -zoom
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 1, 6)) Equal to -zoom
          • (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string)))))) Greater than or equal to 1000
          • (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string)))))) Less than or equal to 3500
        • Then - Actions
          • Camera - Set (Triggering player)'s camera Distance to target to (Real((Substring((Entered chat string), 7, (Length of (Entered chat string)))))) over 0.00 seconds
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string)))))) Greater than or equal to (3500 + 1)
            • Then - Actions
              • Camera - Set (Triggering player)'s camera Distance to target to 3500.00 over 0.00 seconds
            • Else - Actions
 
Last edited by a moderator:
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Have been talking to a childhood friend who is an Artist and is interested in doing some game music. He has a studio in his house. Yes!
  • The Helper The Helper:
    Going to try and get my friend into the homebrew game indie market he is real interested
  • Varine Varine:
    Does reforged require the port forwarding? Is that even still a thing?
  • The Helper The Helper:
    I do not think that is a thing anymore
  • The Helper The Helper:
    Battle.net is different now and I do not think they are using the same network code
  • The Helper The Helper:
    I am sure they are not
  • tom_mai78101 tom_mai78101:
    Lately, news aren't as enticing as they seemed. Or maybe I'm getting old and desensitized.
  • jonas jonas:
    I think news are more serious recently
  • tom_mai78101 tom_mai78101:
    More serious doesn't necessarily mean it's more interesting. :(
  • The Helper The Helper:
    I find that news.google.com has lots of interesting science stuff going on and the Space X stuff with Starship is super cool too
  • The Helper The Helper:
    plus the boring company and physics stuff happening now but I am more into the science now but there is still some crazy news I see out there using Reddit as a news source though and aggregate services like news.google and stuff and put AP in there I always read the news and yes sometimes it is not as interesting as others
  • The Helper The Helper:
    At some point I am going to look at Xenforo and see if it integrates with Hubspot at all. Would love to look at forum under a full marketing account in Hubspot since I have access to that stuff with my current gig
  • Ghan Ghan:
    Kind of surprised it wouldn't have its own forum product offering.
  • Ghan Ghan:
    That said, when Blizzard switched forum software, they went with Discourse, not xenForo.
  • jonas jonas:
    I think news.google shows you personalized news
  • midnight8 midnight8:
    any of the peeps in here run youtube channels? Figure of all the peeps in this forum, got to be some other geeks like me with channels
  • Ghan Ghan:
    I can say I've uploaded a YouTube video.
    +1
  • The Helper The Helper:
    I can say I know someone that uploaded a youtube video :)
  • jonas jonas:
    A friend of mine has a channel where he uploads some of the crazy machines he has built. Like when he plugged an electric motor into a 3d printed gearbox, attached it to his bycicle and then drove 50mph with it.
  • The Helper The Helper:
    You should post a link to his channel in General Discussion I would definitely check it out

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome
    Top