RequestClass: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=This will send a request to server to show class for spawning.| params=<syntaxhighlight lang="lua">(relativeclass=CLASS_CURRENT)</syntaxhighlight> <poem>::relativeclass : Optional parameter. Values can be CLASS_PREVIOUS, CLASS_NEXT. If former value is used, then the server will show previous class. If latter value is used, then server will show next class. If paramter omitted or CLASS_CURRENT is used, the server will show the current class( before npc was...")
(No difference)

Revision as of 16:19, 24 May 2023


Description:
This will send a request to server to show class for spawning.


Parameters:

(relativeclass=CLASS_CURRENT)

relativeclass : Optional parameter. Values can be CLASS_PREVIOUS, CLASS_NEXT. If former value is used, then the server will show previous class. If latter value is used, then server will show next class. If paramter omitted or CLASS_CURRENT is used, the server will show the current class( before npc was dead) or 0 (while connecting)


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


Example

Related Functions

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