game_number

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
Name
targetnameSets 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 value
fragsSets the number the entity holds when the map starts.
Default
0Reset at round start
round_resetSets 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_numbergets the position of the entity, or its velocity
See also
- Locus guide - how entities pass positions and numbers to each other
calc_eval_number- works out a number and can store it heregame_counter- counts triggers and fires a target at a limittrigger_compare- compares two numbers and fires a target
Changes since 1.38
game_numberis new in SBO 2.0.0
