OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Goullou on 17 Mar 2007, 02:13:42

Title: How to force the name of the unit in "globalchat" command?
Post by: Goullou on 17 Mar 2007, 02:13:42
Hi helpers,

Is it possible to force the name set in the unit properties of a given unit to appears first and alone when using the "globalchat" command?    :scratch:

nameoftheunit: messagetext

Thx, Goullou
Title: Re: How to force the name of the unit in "globalchat" command?
Post by: Cheetah on 17 Mar 2007, 13:56:24
Do you mean something like this (http://www.ofpec.com/forum/index.php?topic=17239.0)?
Title: Re: How to force the name of the unit in "globalchat" command?
Post by: Goullou on 17 Mar 2007, 23:04:58
Ok i checked your link.

Actualy when i make a globalchat message the line returned is like this :

West: messagebody...

or when the speaker is the player :

West (playername): messagebody...

I'd like to force a name instead of "West:" or "West (playername):" like with Mr Hide ...

Mr Hide: messagebody...

If i could use the name of the unit (set in unit properties) it would be great.

I saw the behaviour of the command is different for groupchat or sidechat but if i want this message to be seen from all sides West, Est, Resistance or Civilian i must use globalchat. And i don't want to use "titletext" or "hint" for the message.