Difference between revisions of "Vogon.DESTRUCTION IMMINENT"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' 2042.11<br/> '''<translate>Defined by</translate>:''' Vogon<br/> === <transl...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 8: Line 8:
  
 
'''Politely handle event'''<br/>
 
'''Politely handle event'''<br/>
<source lang="lua">local function handlePanic()
+
<syntaxhighlight lang="lua">local function handlePanic()
 
   print("Don't panic.")
 
   print("Don't panic.")
 
end
 
end

Latest revision as of 15:32, 13 July 2023


Available since: 2042.11
Defined by: Vogon

Description

Fires when it's towel-grabbing time.

Example

Politely handle event
<syntaxhighlight lang="lua">local function handlePanic()

 print("Don't panic.")

end

stage:addEventListener(Vogon.IMMINENT_DESTRUCTION, handlePanic) </source>