Home   Help Search Login Register  

Author Topic: Names (MP)  (Read 1364 times)

0 Members and 1 Guest are viewing this topic.

CooK

  • Guest
Names (MP)
« on: 03 Nov 2002, 09:47:49 »
How do yuo display names (for mp) like it would show [CPS]_CooK has been tagged  not knowing the persons name? like   " name has been tagged "   for a text ?

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Names (MP)
« Reply #1 on: 14 Nov 2002, 20:42:27 »
The following is a snippet from one of my map mission.sqm files
I used it to name an mplayer who went into a trigger area.

I also use it for Respawn outer warning zones etc
--------------------------------------------------------------------------

class Item42
      {
         position[]={7722.725098,24.001616,4401.855469};
         a=40.000000;
         b=40.000000;
         activationBy="WEST";
         activationType="WEST D";
         age="UNKNOWN";
         text="Lampoff";
         name="Lampoff";
         expActiv="Titletext[format[""%1 \n Shoot the damn light out, its giving our positions away"",name(thisList select 0)],""Plain down""]";
         class Effects
         {
            titleEffect="PLAIN DOWN";
         };
      };
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Tactician

  • Guest
Re:Names (MP)
« Reply #2 on: 18 Nov 2002, 13:46:22 »
The syntax is as follows:

name soldiername

So you can use it like this, for example:

hint format["%1 has the flag!", (name (flagOwner theFlag))]