GSC reference › Built-in
MakeLocalizedString()
Built-in (engine)
Server + client
Utility
Make a localized string of the given string
Signature
MakeLocalizedString(<string>)
Parameters
| Name | Required? | Details |
|---|---|---|
| string | Required | The string to translate |
Real uses in BO3's scripts
Called 15 times in the decompiled scripts. A few, zombies first:
- scripts/zm/aats/_zm_aat_turned.csc, line 55
self setdrawname(makelocalizedstring("zmui_zm_aat_turned"), 1); - scripts/shared/dev_shared.gsc, line 406
body_name = (makelocalizedstring(getcharacterdisplayname(playerbodytype, mode)) + "") + getcharacterassetname(playerbodytype, mode) + ""; - scripts/shared/persistence_shared.gsc, line 672
iprintlnbold((((makelocalizedstring(challengestring) + "") + maxval) + "") + makelocalizedstring(herostring)); - scripts/shared/popups_shared.gsc, line 541
devgui_cmd_challenge_path = (((((notif_challenges_devgui_base + type) + "") + makelocalizedstring(name) + "") + challengetierstring) + ""... - scripts/mp/_devgui.csc, line 252
title = makelocalizedstring("" + title_str);
Related built-ins
- GetDvarString()Gets the value of a dvar.
- IsString()Checks whether this entity/variable is a string
- istring()Casts a string to an istring
- TableLookupIString()Look up a row in a table and pull out a particular column from that row
- SetHintString()Set the hint string for the entity
- SetHintStringForPlayer()Sets the trigger hint string for one specific player
- SetPlayerNameString()Set the player name string for a HUD element
- SetHintStringForPerk()Shows this hint string to the player if the player has the specified perk
- SetReviveHintString()Set the revive hint string to show to all or to a team.
- GetSurfaceStrings()Returns an array containing all the surface names
- GetFootstepStrings()Returns an array containing all the footstep names
- SetGameTypeString()Set the game type string for the game
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).