globallogic_score::incpersstat()
globallogic_score helper: inc pers stat. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
globallogic_score::incpersstat(dataname, increment, record_stats, includegametype)
Needs #using the script that defines it (scripts/zm/gametypes/_globallogic_score.gsc).
Parameters
| Name |
|---|
| dataname |
| increment |
| record_stats |
| includegametype |
The decompiled scripts don't keep default values, so some of these may be optional: check the real uses below.
Real uses in BO3's scripts
Called 39 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_stats.gsc, line 427
self globallogic_score::incpersstat(stat_name, stat_value, 0, include_gametype); - scripts/zm/gametypes/_globallogic_player.gsc, line 1355
self globallogic_score::incpersstat("deaths", 1, 1, 1); - scripts/zm/gametypes/_globallogic_score.gsc, line 881
self incpersstat("kills", 1, 1, 1); - scripts/mp/gametypes/_globallogic_player.gsc, line 2618
self globallogic_score::incpersstat("deaths", 1, 1, 1); - scripts/mp/gametypes/_globallogic_score.gsc, line 1980
self incpersstat("kills", 1, 1, 1);
More in globallogic_score::
- globallogic_score::initpersstat()Sets up pers stat.
- globallogic_score::getpersstat()Returns the pers stat.
- globallogic_score::giveteamscoreforobjective()globallogic_score helper: giveteamscoreforobjective.
- globallogic_score::gethighestscoringplayer()Returns the highest scoring player.
- globallogic_score::resetteamscores()Resets team scores.
- globallogic_score::updateteamscores()Updates team scores.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).