GetMyClass

From NPC for VCMP 0.4 Servers
Revision as of 17:09, 8 February 2024 by Habi (talk | contribs) (Created page with "{{v1_8_beta}} {{Welcome|desc=Returns the class ID of the npc. Returns negative values (-1,-2,..) if RequestClass was used with <source inline>CLASS_PREVIOUS</source> instead of <source inline>CLASS_NEXT</source>. If one cycle of all available classes has been visited, then this function returns non-negative values.| params=<source>NoParams</source>| retvals=The class ID as negative or non-negative integer| relfuncs=*RequestClass *Suicide *OnNPCClassSelect...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function was added in v1.8 beta and will not work on previous versions.


Description:
Returns the class ID of the npc. Returns negative values (-1,-2,..) if RequestClass was used with CLASS_PREVIOUS instead of CLASS_NEXT. If one cycle of all available classes has been visited, then this function returns non-negative values.


Parameters:

NoParams


Return Values:
The class ID as negative or non-negative integer



Related Functions

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