A_AwardScore is an action that awards a set amount of points to a player. The player in question must be the actor's target. The amount of points to award is determined by the actor's
ReactionTime. If the actor has a
SeeSound, it is played with the player as the sound's source.
Code – A_AwardScore
// Function: A_AwardScore
// Description: Adds a set amount of points to the player's score.
// var1 = unused
// var2 = unused
void A_AwardScore(mobj_t *actor)
if (LUA_CallAction("A_AwardScore", actor))
if (!actor->target || !actor->target->player)
CONS_Debug(DBG_GAMELOGIC, "Powerup has no target.\n");
player = actor->target->player;