RequestClass

From NPC for VCMP 0.4 Servers
Revision as of 18:34, 25 May 2023 by Habi (talk | contribs)
(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:
The function returns true on success, false when npc is already spawned or the parameter provided is not 1,-1 or 0.


Example

Related Functions

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