⚠️ Not yet verified in-game β this page was drafted from source analysis and hasn't been confirmed by actually running it. Treat it as a strong draft, not gospel.
Pmcgate
Module: pmcgate.lua
Overview
The Pmcgate module is responsible for managing the activation and opening of PMC gates in the game world. It sets up a timer to open the gate after it has been activated.
Inheritance
- Inherits from: none β base/utility module
- Imports: none
Instance pattern
This is a stateless manager/utility module with no per-instance tables or fields tracked.
Functions
OnActivate(uGateGuid, args)
Called when the PMC gate instance is activated. It sets up an event to call OpenGate once the object leaves hibernation.
OpenGate(uGateGuid)
Creates a timer that triggers after 2 seconds, calling Object.OpenGate with the PMC gateβs GUID to open it.
Events
- Listens for
Event.ObjectHibernationto callOpenGatewhen the object leaves hibernation. - Listens for
Event.TimerRelativeto trigger the gate opening after a delay.
Notes for modders
- Ensure that
OnActivateis called appropriately to manage the gateβs activation lifecycle. - The gate opens 2 seconds after it is activated. This delay can be adjusted by changing the timer duration in the
OpenGatefunction. - No additional customization options are provided for this module; it functions as a simple timer-based gate opener.