21 m_Text =
"#make_garden_plot";
35 if ( player.IsPlacingLocal() )
38 Object target_object = target.GetObject();
43 if ( target_object && ( greenHouse || polytunnel ) )
45 string action_selection = target_object.GetActionComponentName( target.GetComponentIndex() );
47 if ( action_selection !=
"soil" )
53 vector pos = target_object.GetPosition();
57 for (
int i = 0; i < nearest_objects.Count(); ++i )
59 Object object = nearest_objects.Get( i );
61 if (
object.IsInherited( GardenPlot ) )
80 vector position = targetObject.GetPosition();
87 position[1] = position[1] - 1.15;
89 position[1] = position[1] - 1.05;
91 vector orientation = targetObject.GetOrientation();
93 if (
GetGame().IsMultiplayer() )
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected bool m_FullBody
protected int m_StanceMask
class ActionTargets ActionTarget
class Land_Misc_Greenhouse extends BuildingSuper Land_Misc_Polytunnel()
void Land_Misc_Greenhouse()
protected ActionData m_ActionData
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
void ActionCreateGreenhouseGardenPlot()
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
private const float CAMERA_PITCH_THRESHOLD
ref CABase m_ActionComponent
ref ActionTarget m_Target
protected int m_CommandUID
protected m_CallbackClass
proto native void GetObjectsAtPosition3D(vector pos, float radius, out array< Object > objects, out array< CargoBase > proxyCargos)
Returns list of all objects in sphere "radius" around position "pos".
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZPlayerConstants
defined in C++
proto native CGame GetGame()