Hey guys, so I'm creating a heartbeat mechanic which kicks into effect when other players come within range of player ones unit (killer). The game is a 1v4, 1 killer vs 4 survivors.
The closer a survivor gets to the killer, the louder the heartbeats. I currently cannot test it with other players but I have been able to test it with myself (I gave player one a killer and a survivor) and it worked well. What I am wondering is if the trigger will be MUI.
Setting the variables and stuff is all fine and working, I just don't know if it will work for multiple people.
Example: Survivor 1 is within 400 units of the killer, the heartbeat should only play for the player who owns that survivor at 100% volume, survivor 2 is 800 units of the killer so the heartbeat should only be playing for him but at 65% volume.
Does the trigger below work correctly for different players?
Thanks.
The closer a survivor gets to the killer, the louder the heartbeats. I currently cannot test it with other players but I have been able to test it with myself (I gave player one a killer and a survivor) and it worked well. What I am wondering is if the trigger will be MUI.
Setting the variables and stuff is all fine and working, I just don't know if it will work for multiple people.
Example: Survivor 1 is within 400 units of the killer, the heartbeat should only play for the player who owns that survivor at 100% volume, survivor 2 is 800 units of the killer so the heartbeat should only be playing for him but at 65% volume.
Does the trigger below work correctly for different players?
Thanks.
-
Heartbeat Range
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
Actions
-
Set Temp_Point[22] = (Position of Killer)
-
For each (Integer A) from 23 to 26, do (Actions)
-
Loop - Actions
-
Set Temp_Point[(Integer A)] = (Position of Survivors[((Integer A) - 22)])
-
Set Temp_Player = (Owner of Survivors[((Integer A) - 22)])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Temp_Point[22] and Temp_Point[(Integer A)]) Less than or equal to 400.00
-
-
Then - Actions
-
Custom script: if GetLocalPlayer() == udg_Temp_Player then
-
Sound - Set volume of (Last played sound) to 100.00%
-
Custom script: endif
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Temp_Point[22] and Temp_Point[(Integer A)]) Less than or equal to 600.00
-
-
Then - Actions
-
Custom script: if GetLocalPlayer() == udg_Temp_Player then
-
Sound - Set volume of (Last played sound) to 85.00%
-
Custom script: endif
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Temp_Point[22] and Temp_Point[(Integer A)]) Less than or equal to 800.00
-
-
Then - Actions
-
Custom script: if GetLocalPlayer() == udg_Temp_Player then
-
Sound - Set volume of (Last played sound) to 65.00%
-
Custom script: endif
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Temp_Point[22] and Temp_Point[(Integer A)]) Less than or equal to 1000.00
-
-
Then - Actions
-
Custom script: if GetLocalPlayer() == udg_Temp_Player then
-
Sound - Play HeartBeat
-
Sound - Set volume of (Last played sound) to 45.00%
-
Custom script: endif
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Temp_Point[22] and Temp_Point[(Integer A)]) Greater than or equal to 1001.00
-
-
Then - Actions
-
Custom script: if GetLocalPlayer() == udg_Temp_Player then
-
Sound - Stop HeartBeat Immediately
-
Custom script: endif
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
-
-
-