Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ItemPlacementCondition.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Check if currently placed item has multiple preview variants")]
5 protected bool m_bCheckVariants;
6
7 [Attribute(desc: "Check if player has more unique placeable items")]
8 protected bool m_bCheckItems;
9
10 [Attribute(desc: "Check if placement mode is enabled")]
12
13 //------------------------------------------------------------------------------------------------
15 {
16 SCR_CampaignBuildingGadgetToolComponent gadgetComponent = SCR_CampaignBuildingGadgetToolComponent.Cast(data.GetHeldGadgetComponent());
17 if (!gadgetComponent)
18 return GetReturnResult(false);
19
20 if (!gadgetComponent.GetCanEnterPlacementMode())
21 return GetReturnResult(false);
22
23 if (m_bCheckIsPlacementModeEnabled && !gadgetComponent.GetIsPlacementModeEnabled())
24 return GetReturnResult(false);
25
26 if (m_bCheckItems && !gadgetComponent.HasMoreItemsToPlace())
27 return GetReturnResult(false);
28
29 if (m_bCheckVariants && !gadgetComponent.HasMoreVariants())
30 return GetReturnResult(false);
31
32 return GetReturnResult(true);
33 }
34}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
A single available action condition representation.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute