• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Camera conditions

Status
Not open for further replies.
Level 7
Joined
Jul 9, 2012
Messages
158
Hey!
A quick question: I'm wondering if there is any camera-conditions? I am trying to make a trigger that only works for players who's game-camera is within a specifik region.
Thank you

Here is the trigger:
  • DayNight Models
    • Events
      • Time - Every 0.20 seconds of game time
    • Conditions
    • Actions
      • Player Group - Remove all players from NetherCheckPG
      • Set NetherBooleanPG = (All players controlled by a User player)
      • Set NetherPlayerGroup = (All players matching HERE IS THE PROBLEM
      • Set NetherPlayerInteger = (Number of players in NetherBooleanPG)
      • For each (Integer NetherPlayerIndex) from 1 to NetherPlayerInteger, do (Actions)
        • Loop - Actions
          • Set NetherPlayer[NetherPlayerIndex] = (Random player from (All players matching ((((Matching player) is in NetherBooleanPG) Equal to True) and (((Matching player) is in NetherCheckPG) Equal to False))))
          • Player Group - Add NetherPlayer[NetherPlayerIndex] to NetherCheckPG
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (NetherPlayer[NetherPlayerIndex] is in NetherPlayerGroup) Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • NetherBoolean[(Player number of NetherPlayer[NetherPlayerIndex])] Equal to False
                • Then - Actions
                  • Set NetherBoolean[(Player number of NetherPlayer[NetherPlayerIndex])] = True
                  • Custom script: if GetLocalPlayer() == udg_NetherPlayer[udg_NetherPlayerIndex] then
                  • Custom script: call SetDayNightModels("","")
                  • Custom script: endif
                • Else - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • NetherBoolean[(Player number of NetherPlayer[NetherPlayerIndex])] Equal to True
                • Then - Actions
                  • Set NetherBoolean[(Player number of NetherPlayer[NetherPlayerIndex])] = False
                  • Custom script: if GetLocalPlayer() == udg_NetherPlayer[udg_NetherPlayerIndex] then
                  • Custom script: call RemoveDayNightModels("","")
                  • Custom script: endif
                • Else - Actions
      • Custom script: call DestroyForce(udg_NetherPlayerGroup)
      • Custom script: call DestroyForce(udg_NetherBooleanPG)
 
Last edited:
Status
Not open for further replies.
Top