Skip to content

env_instructor_hint

Entity I/O / env_instructor_hint

An entity that allows for creation and control of instructor lessons by map logic

  • FGD @PointClass in game/core/base.fgd, bases Targetname.
  • cs_script type: Entity, what FindEntitiesByClass("env_instructor_hint") returns.
  • Native class: CEnvInstructorHint (curated pairing).

CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2

Inputs (17)

NameParameterFromDescription
RunScriptFilestringVScriptLoad and execute a script file
RunScriptCodestringVScriptExecute a fragment of script code
CallScriptFunctionstringVScriptCall a script function
CallPrivateScriptFunctionstringVScriptCalls a script function from this entity's private script scope.
CallGlobalScriptFunctionstringVScriptCalls a script function in the global script scope.
KillGameEntityRemoves this entity from the world.
KillHierarchyGameEntityRemoves this entity and all its children from the world.
KillConstrainedGameEntityRemoves this entity, all its children, and anything constrained to it, from the world.
AddOutputstringGameEntityAdds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care.
FireUser1GameEntityCauses this entity's OnUser1 output to be fired.
FireUser2GameEntityCauses this entity's OnUser2 output to be fired.
FireUser3GameEntityCauses this entity's OnUser3 output to be fired.
FireUser4GameEntityCauses this entity's OnUser4 output to be fired.
EnableAutoSleepingGameEntityEnable automatic sleeping on this entity's physics bodies. When enabled, physics bodies go to sleep when at rest.
DisableAutoSleepingGameEntityDisable automatic sleeping on this entity's physics bodies. Bodies remain awake until explicitly put to sleep.
ShowHintstringStart showing the hint. If an entity name is passed as a parameter, the hint is shown only to that entity.
EndHintStop showing the hint if it hasn't already timed out.

Outputs (5)

NameParameterFromDescription
OnUser1GameEntityFired in response to FireUser1 input.
OnUser2GameEntityFired in response to FireUser2 input.
OnUser3GameEntityFired in response to FireUser3 input.
OnUser4GameEntityFired in response to FireUser4 input.
OnKilledGameEntityFired when the entity is killed and removed from the game. Parameter is the inflictor.

Keyvalues (22)

The names Hammer saves and the KeyValue input and AddOutput take at run time. An entity reads some keys only when it spawns, so changing one later may do nothing. Integer keys such as movetype take engine numbers, not the renumbered cs_script enum values.

KeyTypeDefaultFromDescription
vscripts
Entity Scripts
scriptlistVScriptName(s) of script files that are executed after all entities have spawned.
targetname
Name
target_sourceTargetnameThe name that other entities refer to this entity by.
hint_replace_key
Replace Key
stringUnique name so that messages with the same key will replace each other.
hint_target
Target Entity
target_destinationThe entity to show this hint on top of. The entity used must exist on the client, info_target_instructor_hint can be parented to server only entities for this purpose.
hint_static
Positioning
Choices0Either show at the position of the Target Entity. Or show the hint directly on the hud at a fixed position.
  • 0 Follow the Target Entity
  • 1 Show on the hud
hint_allow_nodraw_target
Allow invisible target
Choices1Do we allow the hint to follow entites with nodraw set?
  • 0 End immediately on nodraw
  • 1 Yes
hint_caption
Caption
stringThe text of your hint.
hint_activator_caption
Activator Caption
stringThe text of your hint shown to only the activating player.
hint_color
Caption Color
color255255 255 255The color of the caption text
hint_forcecaption
Force caption
Choices0Do we show the caption text even if the hint is occluded by a wall?
  • 0 No
  • 1 Show when occluded
hint_icon_onscreen
Onscreen Icon
Choicesicon_tipThe icon to use when the hint is within the player's view.
  • icon_bulb icon_bulb
  • icon_caution icon_caution
  • icon_tip icon_tip
  • icon_info icon_info
  • icon_shield icon_shield
  • icon_alert icon_alert
  • icon_alert_red icon_alert_red
  • icon_tip icon_tip
  • icon_skull icon_skull
  • icon_no icon_no
  • icon_run icon_run
  • icon_interact icon_interact
  • icon_button icon_button
  • icon_door icon_door
  • icon_arrow_plain icon_arrow_plain
  • icon_arrow_plain_white_dn icon_arrow_plain_white_dn
  • icon_arrow_plain_white_up icon_arrow_plain_white_up
  • icon_arrow_up icon_arrow_up
  • icon_arrow_right icon_arrow_right
  • icon_fire icon_fire
  • icon_present icon_present
  • use_binding show key bindings
hint_icon_offscreen
Offscreen Icon
Choicesicon_tipThe icon to use when the hint is outside the player's view.
  • icon_bulb icon_bulb
  • icon_caution icon_caution
  • icon_tip icon_tip
  • icon_info icon_info
  • icon_shield icon_shield
  • icon_alert icon_alert
  • icon_alert_red icon_alert_red
  • icon_tip icon_tip
  • icon_skull icon_skull
  • icon_no icon_no
  • icon_run icon_run
  • icon_interact icon_interact
  • icon_button icon_button
  • icon_door icon_door
  • icon_arrow_plain icon_arrow_plain
  • icon_arrow_plain_white_dn icon_arrow_plain_white_dn
  • icon_arrow_plain_white_up icon_arrow_plain_white_up
  • icon_arrow_up icon_arrow_up
  • icon_arrow_right icon_arrow_right
  • icon_fire icon_fire
  • icon_present icon_present
hint_nooffscreen
Show offscreen
Choices0When the hint is offscreen, do we show an icon and arrow?
  • 0 Show
  • 1 Don't show
hint_binding
Bound Command
stringIf using 'show key bindings' for the onscreen icon, this field should be the command we want to show bindings for
hint_icon_offset
Icon Height Offset
float0A height offset from the target entity's origin to display the hint
hint_pulseoption
Size Pulsing
Choices0The icon size can pulsate
  • 0 No Pulse
  • 1 Slow Pulse
  • 2 Fast Pulse
  • 3 Urgent Pulse
hint_alphaoption
Alpha Pulsing
Choices0The icon alpha can pulsate
  • 0 No Pulse
  • 1 Slow Pulse
  • 2 Fast Pulse
  • 3 Urgent Pulse
hint_shakeoption
Shaking
Choices0The icon can shake
  • 0 No Shaking
  • 1 Narrow Shake
  • 2 Wide Shake
hint_local_player_only
Only Local Player
booleanNoThe hint will only be shown to the local player.
hint_timeout
Timeout
integer0The automatic timeout for the hint. 0 will persist until stopped with EndHint.
hint_range
Display Range
float0The visible range of the hint. 0 will show it at any distance.
hint_auto_start
Show on First Sight
boolean1When the player first sees it, it will automatically show for them.