• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

How to write player name on chat ? (only with xml)

myav

Refugee
I want to use <action class="AddChatMessage">
with localized property: "text_key"

and inside localization.xml (where is localized this text_key) i have tried:

{entityName}, {source.name}, {sourceEntityName}, {source_entity|name}, {source_entity.name}

And then... I call game_event:
<triggered_effect trigger="onSelfBuffStart" action="CallGameEvent" target="self" event="ng_test_chat"/>

and i see text message but without player name ((

Who know correct command (how to write player name on chat with xml), please help with hint!
 
Back
Top