213 {
215 {
216 #ifdef CODELOCKCOMPONENT_LOG
218 #endif
219 return;
220 }
221
223 if (!building || !building.CanUseConstruction())
224 {
225 #ifdef CODELOCKCOMPONENT_LOG
227 #endif
228 return;
229 }
230
232 {
233 #ifdef CODELOCKCOMPONENT_LOG
235 #endif
236 return;
237 }
238
239 if (state)
240 {
242
243 #ifdef CODELOCKCOMPONENT_LOG
245 #endif
246 }
247 else
248 {
250
251 #ifdef CODELOCKCOMPONENT_LOG
253 #endif
254 }
255 }
proto native void LockDoor(int index, bool force=false)
Locks the door if not already locked, resets the door health. 'force = true' will close the door if o...
proto native int GetDoorCount()
Returns the number of the doors in the building.
proto native void UnlockDoor(int index, bool animate=true)
Unlocks the door if locked, AJAR animation optional.