• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

trigger/user controll issiue

Status
Not open for further replies.
Level 18
Joined
Aug 23, 2008
Messages
2,319
I've made a map with a trigger that activates when a player presses the Up Arrow key, and I wanted that the player would not be able to change the camera position, and would not be able to select/see anything except the info and buttons on the top of the screen (Quest, Menu, Allies, Log, daytime, gold, lumber, etc.). The most logic solution would be making a cinematic of it, but then the trigger won't activate.

How do I keep the trigger able to stay active, and yet prevent the player from stuff like moving the camera or selecting parts?
 
Lock the camera to one of the player's units and pause all of his units until He's done doing w/e you are having him do.

  • Camera - Lock camera target for Event Response - Triggering Player to Someunithere <gen>, offset by (0.00, 0.00) using Default rotation
You may need to make a unit group variable to pause the units. For example, make a unit group variable (an array) and name it something like "playerunits" then do

  • Unit Group - Pick every unit in playerunits[(Player number of (Triggering player))] and do (Actions)
    • Loop - Actions
      • Unit - Pause (Picked unit)
At some point you'll have to add the units your want frozen to the unit group

  • Unit Group - Add Someunit to playerunits[(Number of the player that owns it)]
 
I guess that's a possibility too to keep the camera in position.

But how do I prevent the player from selecting a unit and seeing the map in the lower-left corner of the screen? Like I said, I have a trigger that causes the unit to do a action when the player presses the Up Arrow key, and that trigger simply must be executed under these circumstances.
 
Status
Not open for further replies.
Back
Top