10 override void CreateConditionComponents()
18 if( !target )
return false;
24 if(
Class.CastTo(building, target.GetObject()) )
26 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
27 if ( doorIndex != -1 )
29 return building.IsDoorLocked(doorIndex);
35 override void OnExecute(
ActionData action_data )
38 if (
Class.CastTo(building, action_data.m_Target.GetObject()) )
40 int doorIndex = building.GetDoorIndex(action_data.m_Target.GetComponentIndex());
41 if ( doorIndex != -1 )
43 building.OpenDoor(doorIndex);