Point message: Difference between revisions
Jump to navigation
Jump to search
Bug:Does not function in
,
,
and
. [todo tested in ?]
Warning:Never use quotation marks in the message. It will corrupt the VMF structure because of the nested quotation marks, which then must be removed manually with a text editor.
m (Updated bug text to include the original Left 4 Dead.) |
m (Template:in code -> Template:code class.) |
||
Line 5: | Line 5: | ||
{{bug|Does not function in {{css}}, {{tf2}}, {{l4d}} and {{l4d2}}.}} | {{bug|Does not function in {{css}}, {{tf2}}, {{l4d}} and {{l4d2}}.}} | ||
{{ | {{code class|CMessageEntity|message_entity.cpp}} | ||
{{clr}} | {{clr}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Entity Message | {{KV|Entity Message|intn=message|string|Message to show at this point.}} | ||
{{warning|Never use quotation marks in the message. It will corrupt the [[VMF]] structure because of the nested quotation marks, which then must be removed manually with a text editor.}} | {{warning|Never use quotation marks in the message. It will corrupt the [[VMF]] structure because of the nested quotation marks, which then must be removed manually with a text editor.}} | ||
{{KV|Show message radius | {{KV|Show message radius|intn=radius|integer|Distance the player must be within to see this message.}} | ||
{{KV|Developer Only? | {{KV|Developer Only?|intn=developeronly|boolean|If set, this message will only be visible when [[developer]] mode is on.}} | ||
{{KV BaseEntity}} | {{KV BaseEntity}} | ||
Revision as of 09:47, 15 May 2022

Template:Base point It displays a text message in the world, at its origin.





Keyvalues
- Entity Message (message) <string>
- Message to show at this point.

- Show message radius (radius) <integer>
- Distance the player must be within to see this message.
- Developer Only? (developeronly) <boolean>
- If set, this message will only be visible when developer mode is on.
Flags
- 1 : Start Disabled
Inputs
- Enable
- Start displaying the message text, if the player is within the message radius.
- Disable
- Stop displaying the message text.
Outputs
See also
- game_text - A similar entity that displays a custom message directly on the player screen.
- game_text_tf -
only. A similar entity that displays a custom HUD message on a team's screen.