Progetto H — Riferimento API Documentazione & Scripting
Funzione statica Condiviso Veloce

Events.Subscribe

Listens for a local custom Event triggered by <code>Events.Call()</code> on the same side

Non ancora tradotto

Sintassi

Lua
Events.Subscribe(event_name, callback)

Parametri

Nome Tipo Predefinito Descrizione
event_name string The Event Name to subscribe
callback function The callback function to execute

Valore restituito

  • function the subscribed callback itself