63 {
64 Building building;
65
66 if ( Class.CastTo(building, target.GetObject()) )
67 {
68 int doorIndex = building.
GetDoorIndex(target.GetComponentIndex());
69 if ( doorIndex != -1 )
70 {
72 }
73 }
74 }
proto native void UnlockDoor(int index, bool animate=true)
Unlocks the door if locked, AJAR animation optional.
proto native int GetDoorIndex(int componentIndex)
Gets the index of the door based on the view geometry component index.