Skip to main content

game_number

game_number icon
Point entityPorted from Featureful

A game_number holds a number that keys that take a number can read. Unlike a game_counter, it has no limit and fires nothing.

A trigger with the use type On or Toggle adds 1, Off takes 1 away, and Set puts in the number the trigger brings, such as the result a calc_eval_number stores.

Attributes​

KeyDescriptionDefault
Nametargetname

Sets the name you put in another entity's number key so it reads this one, and triggering the entity by this name changes the number. See Common keys.

Initial valuefrags

Sets the number the entity holds when the map starts.

Default 0
Reset at round startround_reset

Sets whether the number goes back to its value of the map start at each new round of Co-op, Battle Royale and Bounty Killer, before the players spawn.

  • No (0) - The number keeps its value from round to round
  • Yes (1) - The number goes back to its value of the map start
Default No (0)

Notes​

  • A key that takes a position or a vector and names a game_number gets the position of the entity, or its velocity

See also​

Changes since 1.38​

  • game_number is new in SBO 2.0.0