Jump to content
Sign in to follow this  
=101AD=Richard

Local Title/Hint

Recommended Posts

Ok I have the script below I can use either Title or Hints, makes no difference to me but problem is in mulitplayer I want the hints or Title to be local so only the person that steps into the trigger for activated by BLU4 can see said message. In this way not everyone on the server sees the score and words and can have muliplte ranges at once, How would I mkae this script local. Im a noob at scripting.

_inc     = 0;
_count   = 0;
_targets = [pt1,pt1_1, pt1_2, pt1_3, pt1_4, pt1_5, pt1_6, pt1_7];
_many    =  count _targets;
nopop=true;
{_x  animate["terc",1]} forEach _targets;

titletext ["Welcome to the 101st Airborne's 1st Live Fire Rifle Qualification Range", "PLAIN DOWN"];
sleep 5;
titleText ["Setting up the Range", "PLAIN DOWN"];
sleep 3;
titletext ["The Qualification Course will begin in 10 Seconds", "PLAIN DOWN"];
sleep 2;
titletext ["The Qualification Course will begin in 8 Seconds", "PLAIN DOWN"];
sleep 2;
titletext ["The Qualification Course will begin in 6 Seconds", "PLAIN DOWN"];
sleep 2;
titletext ["The Qualification Course will begin in 4 Seconds", "PLAIN DOWN"];
sleep 2;
titletext ["The Qualification Course will begin in 2 Seconds", "PLAIN DOWN"];
sleep 2;
titletext ["Begin!", "PLAIN DOWN"];


while {_inc<20} do 
{
_rnumber = random _many-1;
_rtarget = _targets select _rnumber;
_rtarget animate["terc", 0];
sleep 6;
if (_rtarget animationPhase "terc" > 0.1) then
{
	_count = _count+1;
	    };
  titletext [format ["Targets :%1 Hit :%2",_inc+1,_count], "PLAIN DOWN"];
_rtarget animate["terc", 1];
_inc = _inc + 1;
};
sleep 8;
titletext ["Session Complete", "PLAIN DOWN"];

Share this post


Link to post
Share on other sites

I'm not too great at locality but if you put the hint or titleText into the onAct of a trigger, I use this for the condition:

this && (local player) && (vehicle player in thisList)

Beware that it isn't tested in a dedicated server environment so not sure how it would work.

So in your case maybe you add an if statement with the above condition or something similar. Don't quite know but thats my 2 cents :)

Share this post


Link to post
Share on other sites

in the stickies there's a guide to MP locality, might wanna try there for some self help

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×