32 {
35 {
36 if (targetEntity.HasTurnableValveBehavior())
37 {
38 int valveIndex = targetEntity.GetTurnableValveIndex(target.GetComponentIndex());
39 if (valveIndex != -1)
40 {
42 {
43 return false;
44 }
45
46 return targetEntity.IsValveTurnable(valveIndex);
47 }
48 }
49 }
50
51 return false;
52 }
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
Super root of all classes in Enforce script.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.