DgsSetMultiClickInterval: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(DGS (OOP Syntax)/(Template Organization) Mission)
Line 7: Line 7:
bool dgsSetMultiClickInterval( int interval )
bool dgsSetMultiClickInterval( int interval )
</syntaxhighlight>
</syntaxhighlight>
{{DGS/OOP|
    Method = '''dgsRootInstance''':setMultiClickInterval|
    Counterpart = dgsGetMultiClickInterval
}}


===Required Arguments===
===Required Arguments===
Line 20: Line 24:
</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}}

Revision as of 23:17, 3 May 2021

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

Syntax

bool dgsSetMultiClickInterval( int interval )

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

Method: dgsRootInstance:setMultiClickInterval(...)
Counterpart: dgsGetMultiClickInterval

Required Arguments

  • interval: An int of the interval among clicks (ms).

Returns

Returns true if successful, false otherwise

Example

DGS = exports.dgs
DGS:dgsSetMultiClickInterval(1000) -- Now, 2 clicks in 1 second will trigger double click event.

See Also

General Functions

General Events