8 private SCR_VehicleSpawnProtectionComponent m_pVehicleSpawnProtection
13 SetEventMask(owner, EntityEvent.INIT);
19 m_pVehicleSpawnProtection = SCR_VehicleSpawnProtectionComponent.Cast(owner.FindComponent(SCR_VehicleSpawnProtectionComponent));
20 ClearEventMask(owner, EntityEvent.INIT);
28 if (user && m_pVehicleSpawnProtection)
29 return m_pVehicleSpawnProtection.GetReasonText(user);
39 bool IsLocked(IEntity user, BaseCompartmentSlot compartmentSlot)
41 if (!user || !compartmentSlot)
44 if (m_pVehicleSpawnProtection)
45 return m_pVehicleSpawnProtection.IsProtected(user, compartmentSlot);