OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: CooK on 03 Nov 2002, 09:47:49

Title: Names (MP)
Post by: CooK 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 ?
Title: Re:Names (MP)
Post by: Terox 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";
         };
      };
Title: Re:Names (MP)
Post by: Tactician 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))]