GetMyName: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=Returns thr name of the npc.| params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>| retval=The name of the npc as string.| note=This is equivalent to <source lang="lua" inline>GetPlayerName(GetMyId());</source> relfuncs=*GetMyId }}")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Welcome|
{{Welcome|
desc=Returns thr name of the npc.|
desc=Returns the name of the npc.|
params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>|
params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>|
retval=The name of the npc as string.|
retval=The name of the npc as string.|
note=This is equivalent to <source lang="lua" inline>GetPlayerName(GetMyId());</source>
note=This is equivalent to <source lang="lua" inline>GetPlayerName(GetMyId());</source>|
relfuncs=*[[GetMyId]]
example=<source lang="lua">GetMyName();</source>|
relfuncs=*[[GetMyID]]
}}
}}

Latest revision as of 13:29, 14 February 2023


Description:
Returns the name of the npc.


Parameters:

NoParams


Return Values:
This function does not return any specific values.

Important Note:
This is equivalent to GetPlayerName(GetMyId());

Example

GetMyName();

Related Functions

The following functions may be helpful as they relate to this function in one way or another.