Delay: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server & Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|Delay(Milliseconds, LuaFunction [, UserArgs])}} {{FuncParameters}} {{FuncParam|Millisecon..."
 
28days (talk | contribs)
No edit summary
Line 13: Line 13:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPlayerSpawn", function(player)
SetPlayerOutline(player, true)
Delay(10000, function(player)
SetPlayerOutline(player, false)
end)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 15:34, 16 November 2019

Delay

Type: Function
Context: Server & Client
Introduced: v1.0

Description

__EDIT_ME__

Syntax

Delay(Milliseconds, LuaFunction [, UserArgs])

Parameters

  • Milliseconds
    __EDIT_ME__
  • LuaFunction
    __EDIT_ME__
  • UserArgs (optional)
    __EDIT_ME__

Return Value

  • __EDIT_ME__

Example

AddEvent("OnPlayerSpawn", function(player)
	SetPlayerOutline(player, true)
	Delay(10000, function(player)
		SetPlayerOutline(player, false)
	end)
end)

See also

__EDIT_ME__