GetMyID: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=Returns the player ID of the npc in the server.| params=<syntaxhighlight lang="lua">()</syntaxhighlight>| example=<source lang="lua"> GetMyID(); </source>| relfuncs=*GetMyName }}")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Welcome|
{{Welcome|
desc=Returns the player ID of the npc in the server.|
desc=Returns the player ID of the npc in the server.|
params=<syntaxhighlight lang="lua">()</syntaxhighlight>|
params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>|
example=<source lang="lua">
example=<source lang="lua">
GetMyID();
GetMyID();
</source>|
</source>|
retvals= The ID (0-99) of the npc.|
relfuncs=*[[GetMyName]]
relfuncs=*[[GetMyName]]
}}
}}

Latest revision as of 04:48, 6 September 2024


Description:
Returns the player ID of the npc in the server.


Parameters:

NoParams


Return Values:
The ID (0-99) of the npc.


Example

GetMyID();

Related Functions

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