GSC reference › Built-in
SetHintStringForPlayer()
Built-in (engine)
Server
Sets the trigger hint string for one specific player
Signature
SetHintStringForPlayer(<player>, <hint string>, [...])
Parameters
| Name | Required? | Details |
|---|---|---|
| player | Required | The player that will see the hint string |
| hint string | Required | The hint string that will be displayed to the player |
| ... | Optional | Additional arguments may be appended to the hint string in the same way as SetHintString. |
Real uses in BO3's scripts
Called 62 times in the decompiled scripts. A few, zombies first:
- scripts/zm/zm_genesis_challenges.gsc, line 508
self.s_unitrigger.playertrigger[e_who.entity_num] sethintstringforplayer(e_who, ""); - scripts/zm/zm_island_challenges.gsc, line 387
self sethintstringforplayer(player, ""); - scripts/zm/zm_island_power.gsc, line 594
var_5972e249 sethintstringforplayer(self, &"ZOMBIE_ELECTRIC_SWITCH"); - scripts/zm/zm_island_skullweapon_quest.gsc, line 2749
self sethintstringforplayer(player, level.var_8b0a8fa9); - scripts/zm/zm_stalingrad_challenges.gsc, line 499
self sethintstringforplayer(e_player, &"ZM_STALINGRAD_CHALLENGE_REWARD_TAKE");
Related built-ins
- SetHintStringForPerk()Shows this hint string to the player if the player has the specified perk
- SetHintString()Set the hint string for the entity
- SetPlayerNameString()Set the player name string for a HUD element
- SetReviveHintString()Set the revive hint string to show to all or to a team.
- SetVisionSetForPlayer()Specify the server override visionset and the transition time into it.
- RecordBreadcrumbDataForPlayer()Record a breadcrumb data point for player at time
- PlayerLinkedSetUseBaseAngleForViewClamp()Sets the whether the player's view clamp is based on the entity (true) or the tag selected (false).
- IsPlayer()Checks whether this entity is the player
- GetPlayers()Returns an array of the currently connected players.
- GetDvarString()Gets the value of a dvar.
- AnglesToForward()Returns the forward vector corresponding to a set of angles.
- GetLocalPlayer()Get the local player predicted centity.
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).