A GivePlayerMedal: Difference between revisions
(Created a page for the A_GivePlayerMedal DECORATE function.) Tag: Source edit |
m (This is a DECORATE feature, not an ACS feature.) Tag: Source edit |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{DISPLAYTITLE:{{PAGENAMEE}}}}{{DECORATEWarning}} | ||
{{DevfeatureWarning|version=3.2|type=a [[DECORATE]] function}} | {{DevfeatureWarning|version=3.2|type=a [[DECORATE]] function}} | ||
bool '''A_GivePlayerMedal''' (str ''medal'', bool ''silent'' [, pointer ''receiver'']) {{Devfeature|3.2|alpha}} | bool '''A_GivePlayerMedal''' (str ''medal'', bool ''silent'' [, pointer ''receiver'']) {{Devfeature|3.2|alpha}} |
Latest revision as of 10:16, 28 May 2024
This article documents a Zandronum-specific DECORATE feature which may not be supported by ZDoom and its other child ports. |
This article documents a DECORATE function which is only available in development builds of Zandronum 3.2 and newer. |
bool A_GivePlayerMedal (str medal, bool silent [, pointer receiver]) (development version 3.2-alpha and above only)
Usage
A DECORATE version of GivePlayerMedal, used to award a player with a medal.
Parameters
- medal: The name of the medal to be awarded.
- silent: If true, then when the player receives the medal, it won't appear on the screen or above their head, and no sounds will be played.
- receiver: The actor that receives the medal. This must point to a valid player. By default, this is AAPTR_DEFAULT, which corresponds to the caller of the function.
Return value
Returns true on success or false on failure.
Examples
This article lists no examples, please add one. |