What's new

Discussion [Zy0N] NewsReel text

Z

zy0n

Enthusiast
Messages
900
Reaction score
449
Points
165
Sin$
7
Example usage:

Thread this on spawn, or whenever you want the text to appear.
Code:
self thread scrollReel("Zy0N is BEAST", (1,1,1), 20);

make sure this is at the top of the .gsc you place this into.
Code:
#include maps\_hud_util;

Place this within your chosen .gsc.
Code:
scrollReel(text, color, speed)
{
self endon("death");
self endon("disconnect");

bg = makeBG( 1000, 20, -200, -19, color );
disp = createFontString("default", 1, self);
disp setPoint("TOPCENTER", undefined, 2000, -16);
disp setText(text);
disp DOD(self);
bg DOD(self);
disp.hideWhenInMenu = true;
r = text.size*9.23;
l = text.size*-7.69;
for(;;)
{
disp setPoint("TOPCENTER", undefined, r, -17);
disp setPoint("TOPCENTER", undefined, l, -17, speed);
wait speed;
}
}

DOD(parent)
{
parent waittill("death");
self destroy();
}

makeBG(width, height, xpos, ypos, color)
{
bg = createBar( color, width, height );
bg setPoint("TOPLEFT", undefined, xpos, ypos);
return bg;
}
 
Degree

Degree

T R A P S O U L
Retired
MotM Fabled Veteran Frame In Gold
Messages
6,227
Reaction score
2,263
Points
670
Sin$
7
Zy0n you deserve some rep. :smile: Would test but Cod5 isn't cool. :tongue:
 
Z

zy0n

Enthusiast
Messages
900
Reaction score
449
Points
165
Sin$
7
Unknown Function Error, not working for me

You need
Code:
#include maps\_hud_util;
at the top of the .gsc you placed this into. i forgot to add that at the top,
i added it and then noticed you said this lolz
 
xVRaPiiDzZVx

xVRaPiiDzZVx

Enthusiast
Messages
380
Reaction score
12
Points
70
Sin$
0
You need
Code:
#include maps\_hud_util;
at the top of the .gsc you placed this into. i forgot to add that at the top,
i added it and then noticed you said this lolz

Still not working for me, the background bar shows but not the text, any ideas?
 
IBeChanChanDooo

IBeChanChanDooo

Enthusiast
Messages
190
Reaction score
20
Points
70
Sin$
0
Okay Well How would you get this on to the bottom or is that where it is?
 
Top Bottom
Login
Register