Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_KickHintComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/KickHintComponent", description: "")]
2 class SCR_KickHintComponentClass : ScriptComponentClass
3 {
4 }
5 
6 class SCR_KickHintComponent : ScriptComponent
7 {
9 
10  //------------------------------------------------------------------------------------------------
13  [RplRpc(RplChannel.Reliable, RplRcver.Owner)]
14  void RPC_DoIncreaseCriminalScore(float points)
15  {
16  m_OnCriminalScoreIncreased.Invoke(points);
17  }
18 
19  //------------------------------------------------------------------------------------------------
22  void ShowUI(float points)
23  {
24  SCR_HintManagerComponent.ShowCustomHint("#AR-FriendlyFire_Text", "#AR-FriendlyFire_Title", 15);
25  }
26 
27  //------------------------------------------------------------------------------------------------
32  {
33  Rpc(RPC_DoIncreaseCriminalScore, points);
34  }
35 
36  //------------------------------------------------------------------------------------------------
37  override void OnPostInit(IEntity owner)
38  {
40  }
41 }
42 
44 {
46 }
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
TEAMKILL
@ TEAMKILL
Definition: SCR_KickHintComponent.c:45
ScriptComponent
SCR_SiteSlotEntityClass ScriptComponent
SCR_KickHintComponentClass
Definition: SCR_KickHintComponent.c:2
RplRpc
SCR_AchievementsHandlerClass ScriptComponentClass RplRpc(RplChannel.Reliable, RplRcver.Owner)] void UnlockOnClient(AchievementId achievement)
Definition: SCR_AchievementsHandler.c:11
ScriptInvokerFloat
ScriptInvokerBase< ScriptInvokerFloatMethod > ScriptInvokerFloat
Definition: SCR_ScriptInvokerHelper.c:58
OnPostInit
override void OnPostInit(IEntity owner)
Called on PostInit when all components are added.
Definition: SCR_KickHintComponent.c:37
ShowUI
void ShowUI(float points)
Definition: SCR_KickHintComponent.c:22
NotifyClientCriminalScoreIncreased
void NotifyClientCriminalScoreIncreased(SCR_ECrimeNotification crime, float points)
Definition: SCR_KickHintComponent.c:31
m_OnCriminalScoreIncreased
SCR_KickHintComponentClass m_OnCriminalScoreIncreased
SCR_ECrimeNotification
SCR_ECrimeNotification
Definition: SCR_KickHintComponent.c:43
RPC_DoIncreaseCriminalScore
void RPC_DoIncreaseCriminalScore(float points)
Definition: SCR_KickHintComponent.c:14
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180