PlayerArmorPoints: Difference between revisions

no edit summary
m (Sean moved page PlayerArmorpoints to PlayerArmorPoints)
No edit summary
Tag: Source edit
 
Line 2: Line 2:
int '''PlayerArmorPoints''' (void)
int '''PlayerArmorPoints''' (void)


==Usage==
== Usage ==
 
=== Return value ===
This function will return the amount of armor points the activator of the script has. If the activator is the server it will return zero.
This function will return the amount of armor points the activator of the script has. If the activator is the server it will return zero.


==Examples==
== Examples ==
 
<syntaxhighlight lang="c" line="1">
<syntaxhighlight lang="c" line="1">
Script 1 (void)
Script 1 (void)
{
{
     Print(s: "You have ", d: PlayerArmorpoints(), s: " armor!");
     Print(s: "You have ", d: PlayerArmorPoints(), s: " armor!");
}
}
</syntaxhighlight>
</syntaxhighlight>


[[category:ACS Functions]]
== See also ==
* <code>{{Zdoomwiki|CheckInventory}}("Armor")</code> can be to achieve the same thing.
 
[[category:ACS functions]]