GetMyArmour: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{v1_8_beta}} {{Welcome|desc=This function returns the Armour of the NPC|params=<source>NoParams</source>| example=<source> if(AmISpawned()) { print("I have armour "+GetMyArmour()+"\n"); } </source>| retvals=The Armour of npc.| relfuncs=*GetPlayerArmour *GetMyHealth}}")
 
No edit summary
 
Line 7: Line 7:
}
}
</source>|
</source>|
retvals=The Armour of npc.|
retvals=The amount of armour the npc has as integer.|
relfuncs=*[[GetPlayerArmour]]
relfuncs=*[[GetPlayerArmour]]
*[[GetMyHealth]]}}
*[[GetMyHealth]]}}

Latest revision as of 17:10, 29 October 2024

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


Description:
This function returns the Armour of the NPC


Parameters:

NoParams


Return Values:
The amount of armour the npc has as integer.


Example

if(AmISpawned())
{
		print("I  have armour "+GetMyArmour()+"\n");
}

Related Functions

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