DgsGetMultiClickInterval: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(DGS (OOP Syntax)/(Template Organization) Mission)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
This function gets the determine time between 2 clicks of double click.
This function gets the interval among (n) times clicks.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
int dgsGetDoubleClickInterval( )
int dgsGetMultiClickInterval( )
</syntaxhighlight>
</syntaxhighlight>
{{DGS/OOP|
    Method = '''dgsRootInstance''':getMultiClickInterval|
    Counterpart = dgsSetMultiClickInterval
}}


===Returns===
===Returns===
Returns a ''integer'' indicates the double click interval.
Returns a ''integer'' indicates the click interval (ms).


==Example==  
==Example==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
DGS = exports.dgs
DGS = exports.dgs
local interval = DGS:dgsGetDoubleClickInterval()
local interval = DGS:dgsGetMultiClickInterval()
outputChatBox(interval)
outputChatBox(interval)
</syntaxhighlight>
</syntaxhighlight>


==See Also==
=See Also=
{{DGSFUNCTIONS}}
 
==<span style="color:#eb3f00;text-shadow:0.05em 0.05em 0.2em #00000099;">General Functions</span>==
{{DGS General Functions}}
 
==<span style="color:#eb3f00;text-shadow:0.05em 0.05em 0.2em #00000099;">General Events</span>==
{{DGS Events/General}}

Latest revision as of 23:17, 3 May 2021

This function gets the interval among (n) times clicks.

Syntax

int dgsGetMultiClickInterval( )

DGS OOP Syntax Help! I don't understand this!

Method: dgsRootInstance:getMultiClickInterval(...)
Counterpart: dgsSetMultiClickInterval

Returns

Returns a integer indicates the click interval (ms).

Example

DGS = exports.dgs
local interval = DGS:dgsGetMultiClickInterval()
outputChatBox(interval)

See Also

General Functions

General Events