• 0

    posted a message on How to hide the minimap?

    While the [UI - Show/Hide UI Frame] action for hiding the minimap only (as the OP needs) seems to work fine, it unfortunately doesn't work the other way around, where i'm trying to hide everything and show ONLY the minimap.

    After hiding the Game UI, setting [UI - Show Minimap Panel for (All players)] doesn't work, while [UI - Show Menu Bar for (All players)] DOES work (show resource panel works as well). My Timers also no longer show up when they are supposed to. Very frustrating.

    I couldn't find another way to hide the other UI elements at the bottom of the screen individually. The presets in [UI - Show/Hide UI Frame] are mostly for story mode... Does anyone have a way around this?

    Another interesting thing is if you use [UI - Show game UI for (All players)], it shows ALL possible ui elements, breaking the game. I hope it isn't working as intended and they might fix it sometime...

    Posted in: Miscellaneous Development
  • 0

    posted a message on Triggering Player Oddities

    Figured it out..

    I had a General - Wait for (Last started timer) to have 0.0 seconds Remaining in that trigger too. If the trigger gets paused and then unpaused, the Triggering Player function will no longer be able to return the actual triggering player, and will return -1 instead. By creating a local variable, I locked that value in there right at the beginning.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Triggering Player Oddities

    I have the following Respawn Trigger:

    Event: Any unit dies Condition: triggering player owns 0 units Action: Spawn Player(Triggering Player)

    The action Spawn Player(locallVariable) has Variable - Set Spawn Mode[localVariable] = true

    Spawn Mode is a boolean Array of size 1 (for each player)

    When I test the map like this, I get an underflow error. After some research I'm guessing it comes from the Triggering Player function returning a -1, which the array doesn't like.

    However, if I make a local variable in the respawn trigger = (Triggering Player), and set the action to Spawn Player(local variable) instead of Spawn Player (Triggering Player), it works fine! Very confused. Shouldn't the integer output be the same either way if I pass the Triggering Player value directly to the action as a parameter, or if I put the Triggering Player value into a variable, and then pass the variable to the action as a parameter?

    I'd appreciate it if someone could explain this, as it seems like a hack I don't understand, and I'm very afraid of using hacks I don't understand in case everything breaks later. Or if I SHOULD be putting the value in a local variable first for future triggers. Thanks!

    Posted in: Miscellaneous Development
  • 0

    posted a message on Player specific LOS Blocker

    Is there a way to create a LOS blocker for a specific player only?

    I want to have this object stay just behind the player unit so it can't "see" (fog of war) behind itself, but it shouldn't hide it from any other player's view if they are behind him.

    Thanks in advance!

    Posted in: Miscellaneous Development
  • 0

    posted a message on Click fires event 2 times

    Has anyone found a way around this without using a global variable? Or at least without using the Mouse Clicked event.

    I can use a global variable so that the trigger cannot run again until the action finishes, but if i hold the mouse button down for the duration, it will click again on mouse up.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Pan Camera for All Players

    Thanks for your help!

    Posted in: Miscellaneous Development
  • 0

    posted a message on Pan Camera for All Players

    I'm trying to make a little cinematic for everyone to see on map startup, but the "Pan Camera" action only lets me choose a specific player, and I couldn't find an option to pan for all players. Do I have to copy the action for every player each time I want to move the camera, or is there a better way to do it?

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.