RequestClass

From NPC for VCMP 0.4 Servers
Revision as of 16:19, 24 May 2023 by Habi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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.