• 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.

[Trigger] Camera Trigger - What can I do with this?

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I have a trigger in my map:

  • Camera
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in Player Group - Player 1 (Red) and do (Camera - Set (Picked player)'s camera Distance to target to ((Distance to target of (Current camera)) + 400.00) over 0.00 seconds)
What can I do so the camera works in the same way for all players?
Is it possible to prevent players from zooming in and out?

Thanks in advance.
 
Level 10
Joined
Nov 5, 2008
Messages
536
  • Camera
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in Player Group - Player 1 (Red) and do (Camera - Set (Picked player)'s camera Distance to target to ((Distance to target of (Current camera)) + 400.00) over 0.00 seconds)

Players can rotate if they want to, as long as no one zooms in and out. But is the trigger just for Player 1 right now? Don't I need to change that field?
 
Level 8
Joined
Nov 9, 2008
Messages
502
Well yes but you could make your own Player Group variable and set it to include all players then pick every player in your group variable.

Player Groups leak so when you use your own variable you need to put a Custom Script at then end which reads "call DestroyForce(udg_yourvariablename)".
 
Level 10
Joined
Nov 5, 2008
Messages
536
Well yes but you could make your own Player Group variable and set it to include all players then pick every player in your group variable.

Player Groups leak so when you use your own variable you need to put a Custom Script at then end which reads "call DestroyForce(udg_yourvariablename)".

  • Camera
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in PlayerGroupVariable and do (Camera - Set (Picked player)'s camera Distance to target to ((Distance to target of (Current camera)) + 400.00) over 0.00 seconds)
      • Custom script: call DestroyForce(udg_PlayerGroupVariable)
Now my trigger looks like this. I wonder how I do to make the variable include all players?

Why would you like to make players not be able to zoom camera anyway?

I want all players to have their camera zoomed out to a set value. Unfortunatly if a player accidently zoomes in he can not zoom back again due to how my trigger works. If a player happens to zoom in he will be in a disadvantage cause he can not see as much of the battlefield and the map as the other players can during the rest of the game.
 
Last edited:
Level 9
Joined
Apr 28, 2009
Messages
538
this trigger works for me:

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Camera - Set (Picked player)'s camera Distance to target to ((Distance to target of (Current camera)) + 400.00) over 0.00 seconds)
note the "Pick every player in (All players)" and "Set (Picked player)'s camera"
 
Level 9
Joined
Apr 28, 2009
Messages
538
i know this. The trigger i posted was only the working version of what he first tryed to use.
So, of course, if he wants to prevent players to zoom in/out he must add "every 0.50 seconds" at events
 
Status
Not open for further replies.
Top