- Joined
- Jul 9, 2012
- Messages
- 159
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:
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:




