Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkTriggerNetworkComponent.c
Go to the documentation of this file.
2{
3}
4
5class SCR_ScenarioFrameworkTriggerNetworkComponent : ScriptComponent
6{
7 //------------------------------------------------------------------------------------------------
12 {
13 if (!left)
15 else
17 }
18
19 //------------------------------------------------------------------------------------------------
28 [RplRpc(RplChannel.Reliable, RplRcver.Owner)]
29 void Rpc_InvokeTriggerUpdated(float activationCountdownTimer, float tempWaitTime, int playersCountByFactionInside, int playersCountByFaction, string playerActivationNotificationTitle, bool triggerConditionsStatus, float minimumPlayersNeededPercentage)
30 {
31 SCR_ScenarioFrameworkTriggerEntity.s_OnTriggerUpdated.Invoke(activationCountdownTimer, tempWaitTime, playersCountByFactionInside, playersCountByFaction, playerActivationNotificationTitle, triggerConditionsStatus, minimumPlayersNeededPercentage);
32 }
33
34 //------------------------------------------------------------------------------------------------
36 [RplRpc(RplChannel.Reliable, RplRcver.Owner)]
41}
void Rpc_InvokePlayerLeftTrigger()
Invokes OnTriggerUpdatedPlayerNotPresent to the player who just left the trigger.
SCR_ScenarioFrameworkTriggerNetworkComponentClass ScriptComponentClass ReplicateTriggerState(SCR_ScenarioFrameworkTriggerEntity trigger, bool left)
void Rpc_InvokeTriggerUpdated(float activationCountdownTimer, float tempWaitTime, int playersCountByFactionInside, int playersCountByFaction, string playerActivationNotificationTitle, bool triggerConditionsStatus, float minimumPlayersNeededPercentage)
void Rpc(func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL)
int GetPlayersCountByFaction()
Returns number of players in game by the faction set for this trigger.
int GetPlayersCountByFactionInsideTrigger(Faction faction)
Returns number of players from the selected faction that are inside this trigger.
float GetActivationCountdownTimerTemp()
Returns activation countdown timer temporary value which is calculated by the trigger but changes ove...
string GetPlayerActivationNotificationTitle()
Returns player activation notification title.
static ref ScriptInvokerBase< ScriptInvokerTriggerUpdated > s_OnTriggerUpdated
bool GetTriggerConditionsStatus()
Returns trigger conditions status.
float GetActivationCountdownTimer()
Returns activation countdown timer.
static ref ScriptInvokerInt s_OnTriggerUpdatedPlayerNotPresent
Faction GetOwnerFaction()
Returns trigger faction owner.
float GetMinimumPlayersNeededPercentage()
Returns minimum players needed percentage.
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
Definition EnNetwork.c:95
RplRcver
Definition RplRcver.c:59
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.
Definition RplChannel.c:14