RequestSpawn
Jump to navigation
Jump to search
This function was added in v1.6 beta 4 patch2 and will not work on previous versions.
Description:
This will send a request to server for spawning in the currently selected class.
Parameters:
NoParams
Return Values:
This function does not return any specific values.
Important Note:
Inside the function OnNPCClassSelect, use Team, color, position to check if the class matches as it is not possible to obtain the class id directly.
Example
function OnNPCClassSelect() { if(GetPlayerTeam(GetMyID())==2) RequestSpawn(); else RequestClass(CLASS_NEXT); return 1 }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.