OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: General Goober on 17 Feb 2003, 12:29:28

Title: Scripts
Post by: General Goober on 17 Feb 2003, 12:29:28
How do you set your scripts so that only one side sees messages.  For instance, using zone alarm script which activates and advises both sides of activation.  Same thing happens when you use radio to call transport or whatever.  Want to set it up so that only one side receives the messages and sounds.
Title: Re:Scripts
Post by: Deadman on 17 Feb 2003, 22:58:52
Try using sidechat instead of hint or titletext

create a dummy unit on the side you want the message to be shown to and when you want the message to appear just put

(name of unit) sidechat "text to be shown"

that should do it for you. i think :)
Title: Re:Scripts
Post by: Terox on 18 Feb 2003, 19:31:24
?Side Player == West:titletext[format["Awesome Warrior\n%1\n has capped\n %2!",name _flagowner,_flagname],"PLAIN DOWN"]



The above line not only shows you how to display to only one side, it
 also shows you how to name an individual that triggered the script


For your respawn warning

use the following in a trigger

Titletext [format["%1 \n You are entering an EAST Safezone \n Turn around or die!",name(thisList select 0)],"Plain down"]

if in a script use the following
?Side Player == West:Titletext [format["%1 \n You are entering an EAST Safezone \n Turn around or die!",name(thisList select 0)],"Plain down"]


The above line may also work in the trigger but i havent tested it