OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: CptBravo on 24 Jan 2004, 20:20:30
-
Hi,
I have searched and searched but to no avail ..
I have some trigs once activated will give "Hints" and text messeges. Now I want only West or East to see it. My question is HOW??! :)
Thanks for answering my ssssssimple question
-
in a script:
?(side player == EAST): hint "go ruskies go"
?(side player == WEST): hint "kill those russian bastards"
in a trigger:
condition: side player == EAST
or WEST
~S~ CD
-
Thanks Chris! How about the text (the white letters from the Trig) So if group 1 is down it will write in white text to west players group1 down.
And anyway to do it without a script to avoid having 20 scripts for 20 groups?
Thanks again ;D
-
Take your time to study the scripts, i've sent ya.
I'm using global arrays and variables to do such stuff
with only 1 script. The very same script will customize
the message and effects/commands, for each selected
group (may be one/more/or all groups).
That way you don't need to set up triggers for every single
guy or group on the map.
It may take some time, until you will figure out, how i did it,
but once you got it, you'll see how handy that is. ;)
:edit - btw - the scripted way for those white textmessages
is:
titletext ["messagetext","PLAIN"]
or:
titletext ["messagetext","PLAIN DOWN"]
let's say you make a loop thru your groops:
_i = 0
_max = count yourgrouparray
#loop
_group = grouparray select _i
?("alive _x" count units _group == 0): titletext [format ["%1 is down"],"PLAIN"]
~6
_i = _i + 1
?(_i < _max): goto "loop"
~S~ CD