Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
EditablePrefabsLabel_Trait.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 override bool GetLabelValid(WorldEditorAPI api, IEntitySource entitySource, IEntityComponentSource componentSource, string targetPath, EEditableEntityType entityType, notnull array<EEditableEntityLabel> authoredLabels, out EEditableEntityLabel label)
6 {
7 if (m_Label == EEditableEntityLabel.TRAIT_REARMING)
8 {
9 IEntityComponentSource arsenalComponentSource = SCR_BaseContainerTools.FindComponentSource(entitySource, SCR_ArsenalComponent);
10 if (arsenalComponentSource)
11 {
12 label = m_Label;
13 return true;
14 }
15 }
16
17 return false;
18 }
19}
EEditableEntityLabel
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.