3 const float MAX_ACTION_DETECTION_ANGLE_RAD = 1.3;
4 const float MAX_ACTION_DETECTION_DISTANCE = 2.0;
23 if (MemoryPointExists(
"kit_spawn_position"))
26 position = GetMemoryPointPos(
"kit_spawn_position");
109 if (
angle >= MAX_ACTION_DETECTION_ANGLE_RAD)
125 min = -GetMemoryPointPos(
"BoundingBox_min");
126 max = -GetMemoryPointPos(
"BoundingBox_max");
148 if (MemoryPointExists(selection))
152 if (
distance >= MAX_ACTION_DETECTION_DISTANCE)
ActionFoldBaseBuildingObjectCB ActionContinuousBaseCB ActionFoldBaseBuildingObject()
void AddAction(typename actionName)
Construction GetConstruction()
PluginBase GetPlugin(typename plugin_type)
class JsonUndergroundAreaTriggerData GetPosition
override bool IsPlayerInside(PlayerBase player, string selection)
override string GetConstructionKitType()
override bool CanPutIntoHands(EntityAI parent)
override void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
override bool CanUseHandConstruction()
override void SetActions()
override bool MustBeBuiltFromOutside()
override bool IsFacingCamera(string selection)
override int GetMeleeTargetType()
override bool HasProperDistance(string selection, PlayerBase player)
override vector GetKitSpawnPosition()
override bool CanBeRepairedToPristine()
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto native CGame GetGame()
static proto float Acos(float c)
Returns angle in radians from cosinus.