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

Apply trigger to all players.

Status
Not open for further replies.
Level 3
Joined
May 26, 2014
Messages
41
How can i make this trigger work for all of the players, not only red? I'm really noobish at triggers and i'm trying to make an AMH system. Basically want i want is to pan the camera of all players to a certain point and then return them to where they were. Also, could be there any leaks? Would be greatly appreciated if someone can help.

  • test
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
      • (Player 2 (Blue) slot status) Equal to Is playing
      • (Player 4 (Purple) slot status) Equal to Is playing
      • (Player 10 (Light Blue) slot status) Equal to Is playing
    • Actions
      • Game - Display to (All players) the text: |cffff0000MAPHACK D...
      • Wait 0.30 seconds
      • Set CamPoint = (Target of current camera view)
      • Camera - Pan camera for Player 1 (Red) to (Target of Camera 001 <gen>) over 0.00 seconds
      • Special Effect - Create a special effect attached to the origin of Peasant 0364 <gen> using war3mapImported\DeathCrash.mdx
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.10 seconds
      • Camera - Pan camera for (Matching player) to CamPoint over 0.00 seconds
 
Level 3
Joined
May 26, 2014
Messages
41
Nvm i think, it works, thanks a lot for the help. Are there any leaks though?
  • test
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
      • (Player 2 (Blue) slot status) Equal to Is playing
      • (Player 4 (Purple) slot status) Equal to Is playing
      • (Player 10 (Light Blue) slot status) Equal to Is playing
    • Actions
      • Game - Display to (All players) the text: |cffff0000MAPHACK D...
      • Wait 0.30 seconds
      • Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
        • Loop - Actions
          • Set CamPoint = (Target of current camera view)
          • Camera - Pan camera for (Picked player) to (Target of Camera 001 <gen>) over 0.00 seconds
      • Special Effect - Create a special effect attached to the origin of Peasant 0364 <gen> using war3mapImported\DeathCrash.mdx
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.10 seconds
      • Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to CamPoint over 0.00 seconds)
 
Last edited:
Level 3
Joined
May 26, 2014
Messages
41
*Player group leak
*Remove the cam point
*Target of camera leaks a location

http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/

How do I delete the target of camera? And "All Players" doesn't leak as that guide says, so i'm going to keep it. Thanks. Current trigger:

  • test
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
      • (Player 2 (Blue) slot status) Equal to Is playing
      • (Player 4 (Purple) slot status) Equal to Is playing
      • (Player 10 (Light Blue) slot status) Equal to Is playing
    • Actions
      • Game - Display to (All players) the text: |cffff0000MAPHACK D...
      • Wait 0.30 seconds
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Set CamPoint = (Target of current camera view)
          • Camera - Pan camera for (Picked player) to (Target of Camera 001 <gen>) over 0.00 seconds
      • Special Effect - Create a special effect attached to the origin of Peasant 0364 <gen> using war3mapImported\DeathCrash.mdx
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.10 seconds
      • Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to CamPoint over 0.00 seconds)
      • Custom script: call RemoveLocation(udg_CamPoint)
 
Level 14
Joined
Dec 29, 2009
Messages
928
He's saying this needs to be changed.

  • Set CamPoint = (Target of current camera view)
You need to set it to a specific point, and then your custom script will remove the location leak.
Most commonly, a point is set to something related to a region. Often times people will pan the camera to the center of a region. Set your variable to something like this.
 
Status
Not open for further replies.
Top