Developer Hooks & API
SkyCarrier provides hooks that other plugins can use to respond to event activity.
OnSkyCarrierEventStart
Called when the carrier is fully spawned and the event begins.
Код:
void OnSkyCarrierEventStart(BaseEntity carrier, Vector3 position)
OnSkyCarrierEventEnd
Called when an active SkyCarrier event ends.
Код:
void OnSkyCarrierEventEnd()
OnSkyCarrierEventWinner
Called when a player opens the final destruction reward crate for the first time.
Код:
void OnSkyCarrierEventWinner(BasePlayer player)
API_IsEventActive
Allows another plugin to check whether a SkyCarrier event is currently active.
Returns
true when an event instance exists and
false otherwise.
Note
Developer Integration
These hooks can be used for custom event notifications, statistics, progression systems, achievements, and other plugin integrations.
The winner hook is specifically triggered by opening the final destruction reward crate, rather than simply damaging or destroying the carrier.