game_score

Modified

12-Jul-2023

Gives score points to the triggering player, as can be seen on the multiplayer scoreboard.

Keyvalues


OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.

Name targetname : Set name of game_score so other entities can trigger it to give points to player (he must be an !activator of triggering chain). Every trigger use-type works uniformly. Can be kill-targeted.

Target target : Non-functional in game_score.

Delay Before Trigger delay : Non-functional in game_score.

Kill Target killtarget : Non-functional in game_score.

Points to add (+/-) points : Amount of points to add to the score. Can be negative.

Master master : Name of the multisource entity that (temporary) locks this game_score. If master is specified the game_score will be disabled and it will not give points to activating player. When multisource entity is triggered/being triggering by all possible inputs, the game_score will be unlocked. When multisource lost at least one input signal, the entities becomes locked again.

Flags


  • 1 : Allow Negative : When reducing score as a means of penalty, this allows the score to go below zero.

  • 2 : Team Points : All players receive the specified amount of points, instead of only the triggering player.