Jump to content
Sign in to follow this  
nap1991

Display GroupID in Globalchat

Recommended Posts

I'm making a mission with some AI conversation.

How do I display groupID of the unit in globalchat instead of just "Blufor" , "Independent", "Civilian"?

Moreover, it is possible for me to set name of the unit (not group ID) and use in sidechat?

Share this post


Link to post
Share on other sites

Display groupID of group leader:

unit init: grp2 = group this; this setGroupId ["ALPHA"];

_grp2ldr = leader grp2;
_grp2ldr globalChat format ["%1 hello over?", _grp2ldr];

returns:

BLUFOR: "B ALPHA:1 HELLO OVER?"

Display Name of unit named Enemy_Leader:

_String = vehicleVarName Enemy_Leader;
Enemy_Leader globalChat format ["%1: hello infidel?", _String];

returns:

OPFOR: "ENEMY_LEADER: HELLO INFIDEL?"

Edited by PELHAM

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×