CallEvent: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|The event to call from the same package.}}


{{FuncSyntax|CallEvent(EventName [, UserArgs...])}}
{{FuncSyntax|CallEvent(EventName [, UserArgs...])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|EventName |__EDIT_ME__}}
{{FuncParam|EventName |The event name.}}
{{FuncParamOptional|UserArgs|__EDIT_ME__}}
{{FuncParamOptional|UserArgs|The passed user arguments to the function.}}


{{FuncReturnValue|This function has no specific return value.}}
{{FuncReturnValue|This function has no specific return value.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
-- code
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[CallEvent]]
* [[CallRemoteEvent]]
* [[AddRemoteEvent]]

Revision as of 15:18, 17 November 2019

CallEvent

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

Description

The event to call from the same package.

Syntax

CallEvent(EventName [, UserArgs...])

Parameters

  • EventName
    The event name.
  • UserArgs (optional)
    The passed user arguments to the function.

Return Value

  • This function has no specific return value.

Example

-- code

See also