GetMyTeam

From NPC for VCMP 0.4 Servers
Revision as of 17:06, 29 October 2024 by Habi (talk | contribs) (Created page with "{{v1_8_beta}} {{Welcome|desc=This function will return the team ID (0-255) of NPC.| params=<source inline>NoParams</source>|example=<source>print("My Team ID is "+ GetMyTeam()+ "\n");</source>| retvals=The Team ID of the npc|relfuncs= *GetPlayerTeam *GetMySkin|}}")
(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:
This function will return the team ID (0-255) of NPC.


Parameters: NoParams


Return Values:
The Team ID of the npc


Example

print("My Team ID is "+ GetMyTeam()+ "\n");

Related Functions

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