Named in the code or data of server, client.
InstructorServerHintCreateEvent[GameEventHandler("instructor_server_hint_create")]
public HookResult OnInstructorServerHintCreate(InstructorServerHintCreateEvent args) {
// args.Userid, args.HintEntindex, args.HintName, args.HintReplaceKey, args.HintTarget,
// args.HintActivatorUserid, args.HintTimeout, args.HintIconOnscreen, args.HintIconOffscreen,
// args.HintCaption, args.HintActivatorCaption, args.HintColor, args.HintIconOffset,
// args.HintRange, args.HintFlags, args.HintBinding, args.HintAllowNodrawTarget,
// args.HintNooffscreen, args.HintForcecaption, args.HintLocalPlayerOnly, args.HintStartSound,
// args.HintLayoutfile, args.HintVrPanelType, args.HintVrHeightOffset, args.HintVrOffsetX,
// args.HintVrOffsetY, args.HintVrOffsetZ
return HookResult.Continue;
}| Field | Type | Deadworks property | Valve's comment |
| userid | player_controller | Userid CBasePlayerController? | user ID of the player that triggered the hint |
| hint_entindex | long | HintEntindex int | entity id of the env_instructor_hint that fired the event |
| hint_name | string | HintName string | what to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout) |
| hint_replace_key | string | HintReplaceKey string | type name so that messages of the same type will replace each other |
| hint_target | long | HintTarget int | entity id that the hint should display at |
| hint_activator_userid | player_controller | HintActivatorUserid CBasePlayerController? | playerslot of the activator |
| hint_timeout | short | HintTimeout int | how long in seconds until the hint automatically times out, 0 = never |
| hint_icon_onscreen | string | HintIconOnscreen string | the hint icon to use when the hint is onscreen. e.g. "icon_alert_red" |
| hint_icon_offscreen | string | HintIconOffscreen string | the hint icon to use when the hint is offscreen. e.g. "icon_alert" |
| hint_caption | string | HintCaption string | the hint caption. e.g. "#ThisIsDangerous" |
| hint_activator_caption | string | HintActivatorCaption string | the hint caption that only the activator sees e.g. "#YouPushedItGood" |
| hint_color | string | HintColor string | the hint color in "r,g,b" format where each component is 0-255 |
| hint_icon_offset | float | HintIconOffset float | how far on the z axis to offset the hint from entity origin |
| hint_range | float | HintRange float | range before the hint is culled |
| hint_flags | long | HintFlags int | hint flags |
| hint_binding | string | HintBinding string | bindings to use when use_binding is the onscreen icon |
| hint_allow_nodraw_target | bool | HintAllowNodrawTarget bool | if false, the hint will dissappear if the target entity is invisible |
| hint_nooffscreen | bool | HintNooffscreen bool | if true, the hint will not show when outside the player view |
| hint_forcecaption | bool | HintForcecaption bool | if true, the hint caption will show even if the hint is occluded |
| hint_local_player_only | bool | HintLocalPlayerOnly bool | if true, only the local player will see the hint |
| hint_start_sound | string | HintStartSound string | Game sound to play |
| hint_layoutfile | string | HintLayoutfile string | Path for Panorama layout file |
| hint_vr_panel_type | short | HintVrPanelType int | Attachment type for the Panorama panel |
| hint_vr_height_offset | float | HintVrHeightOffset float | Height offset for attached panels |
| hint_vr_offset_x | float | HintVrOffsetX float | offset for attached panels |
| hint_vr_offset_y | float | HintVrOffsetY float | offset for attached panels |
| hint_vr_offset_z | float | HintVrOffsetZ float | offset for attached panels |