Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CampaignSoundComponent.c
Go to the documentation of this file.
1[ComponentEditorProps(category: "GameScripted/Sound", description: "Component is active only in conflict mode")]
5
7{
8 //------------------------------------------------------------------------------------------------
9 override void OnInit(IEntity owner)
10 {
11 super.OnInit(owner);
12
13 BaseGameMode gameMode = GetGame().GetGameMode();
14 if (!gameMode || SCR_GameModeEditor.Cast(gameMode))
15 EnableDynamicSimulation(false);
16 }
17
18 //------------------------------------------------------------------------------------------------
19 // constructor
24 {
25 SetScriptedMethodsCall(true);
26 }
27}
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
void SCR_CampaignSoundComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
void OnInit(IEntity owner)