OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Foo on 31 Jan 2003, 12:39:35
-
....the radio command (0-0-1) that lets you see score?
(west 0-East 0 or such-like)
Also, how do you make messages specific to a player? What i mean is that when a guy, we'll call him "bob" takes the flag, it will say "bob has the flag"
I once knew how to do this, but ive forgotten...i did it a coupla weeks ago unintentionally as well, but i cant remeber how...something to do with "player has the flag" or something similar i think... ::)
-
titletext[format["Hail the fallen HERO\n%1\n %2 is lying on his blood soaked corpse\n You have 60 seconds to retrieve it",name _flagowner,_flagname],"PLAIN DOWN"]
%1 = name_flagowner
As for the radio problem, cant help you, i dont do it that way
-
so how do u do it?
-
1) Create a trigger 0 by 0 with activation "Radio Alpha" set to trigger repeatedly. Leave the condition as "this" and when activated (on activation) put something like:
titleText[ format["West %1 - East %2", ScoreWest, ScoreEast], "PLAIN"]
where the names of your score variables replace "ScoreWest" and "ScoreEast".
2) What Terox said (name [player object] will give you the player's name.) Example:
titleText[ format["%1 has the Soviet flag!", name (flagOwner SovietFlag)], "PLAIN DOWN"]
where "SovietFlag" is the name given to your Soviet flagpole.
Pope Zog