OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started 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 ?
-
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";
};
};
-
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))]