Env instructor hint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 7: Line 7:
==Keyvalues==
==Keyvalues==


;{{KV Targetname}}
{{KV Targetname}}


;'''Target Entity'''
;'''Target Entity'''

Revision as of 20:27, 12 January 2010

Template:L4d2 point

Entity Description

Env instructor hint.gif
Note.pngNote:env_instructor_hint currently cannot display more than one hint at the same time.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Target Entity
The 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.
Positioning
Either show at the position of the Target Entity. Or show the hint directly on the hud at a fixed position.
Allow invisible target
Do we allow the hint to follow entites with nodraw set?
Caption
The text of your hint.
Caption Color
The color of the caption text
Force caption
Do we show the caption text even if the hint is occluded by a wall?
Onscreen Icon <choices>
The icon to use when the hint is within the player's view.
Offscreen Icon <choices>
The icon to use when the hint is outside the player's view.
Show offsreen
When the hint is offscreen, do we show an icon and arrow?
Bound Command
If using 'show key bindings' for the onscreen icon, this field should be the command we want to show bindings for
Icon Height Offset
A height offset from the target entity's origin to display the hint
Size Pulsing
The icon size can pulsate
Alpha Pulsing
The icon alpha can pulsate
Shaking
The icon can shake
Timeout
The automatic timeout for the hint. 0 will persist until stopped with EndHint.
Display Range
The visible range of the hint. 0 will show it at any distance.
Show on First Sight
When the player first sees it, it will automatically show for them.

Icons

Icon Name Icon
icon_tip Hint 001 icon tip.jpg
icon_info Hint 002 icon info.jpg
icon_shield Hint 003 icon shield.jpg
icon_alert Hint 004 icon alert.jpg
icon_alert_red Hint 005 icon alert red.jpg
icon_tip (again) Hint 006 icon tip (again).jpg
icon_skull Hint 007 icon skull.jpg
icon_no Hint 008 icon no.jpg
icon_interact Hint 009 icon interact.jpg
icon_button Hint 010 icon button.jpg
icon_door Hint 011 icon door.jpg
icon_arrow_plai Hint 012 icon arrow plain.jpg
icon_arrow_plain_white_dn Hint 013 icon arrow plain white dn.jpg
icon_arrow_plain_white_up Hint 014 icon arrow plain white up.jpg
icon_arrow_up Hint 015 icon arrow up.jpg
icon_arrow_right Hint 016 icon arrow right.jpg

show key bindings

This is a special icon that requires setting entity property Bound Command. The following example sets Bound Command to "jump" (without quotations) with Caption set to "Bet you can't jump over me!" (without quotations).

Hint 017 show key bindings.jpg

In this case, "+jump" is bound to "SPACE", the space bar on the keyboard. More commands can be found in the Left 4 Dead 2 cfg folder. Open config.cfg in a text editor to review which commands are currently bound to the client.

Flags

There are currently no flags.

Inputs

Outputs