982 {
984 if (
Class.
CastTo(ent,target.GetObject()) && ent.CanUseConstruction())
985 {
988 if (construction &&
BuildCondition(player, target, item,
false, constraction_index))
989 {
990 string partName;
991 if (item)
992 {
994 }
995
998 {
999 bool boo;
1001 return false;
1002 }
1003
1004 if (player.IsPlacingLocal() || player.IsPlacingServer())
1005 return false;
1006
1008 checkData.m_PartName = partName;
1009
1010 return !construction.IsCollidingEx(checkData);
1011 }
1012 }
1013 return false;
1014 }
void ConstructionBase(EntityAI parent)
void CollisionCheckData()
static bool BuildCondition(PlayerBase player, ActionTarget target, ItemBase item, bool camera_check, int constraction_index)
override bool PerformRoofCheckForBase(string partName, PlayerBase player, out bool result)
Super root of all classes in Enforce script.
ConstructionPart GetBuildPartAtIndex(int idx)
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.