HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about floating text (texttag) and desyncs

11-08-2003, 08:10 PM#1
Vexorian
Obviusly creating a floating text for local player desyncs (because it changes the value of a global variable, but what about using the native SetTextTagVisibility() to hide it to a player, would it desync?

I believe that it won't because it would only hide the floating text, and I don't think it would cause network traffic.

BTW: I will officially start to call floating texts text tags due to some really nice natives I found and 2 new functions I uploaded to the vault
11-09-2003, 05:18 PM#2
PitzerMike
What natives do you mean?
Maybe they could be added to WEU and UMSWE
11-09-2003, 07:09 PM#3
Vexorian
I found them in common.j in a section called texttag api I think

You can change a floating text position / color / make it to move around the screen. hiding them and some other thing I can't remember

But I am still asking the question
11-09-2003, 08:07 PM#4
KaTTaNa
I don't think it will desync either.
However, I belive that there will be even less chance of desync if you set the alpha to 0 for all other players instead of hiding it.
11-10-2003, 11:27 AM#5
Vexorian
Quote:
Originally posted by Vexorian
I found them in common.j in a section called texttag api I think

You can change a floating text position / color / make it to move around the screen. hiding them and some other thing I can't remember

But I am still asking the question


I gave you the wrong directions, however these are the natives:

Code:
native CreateTextTag                takes nothing returns texttag
native DestroyTextTag               takes texttag t returns nothing
native SetTextTagText               takes texttag t, string s, real height returns nothing
native SetTextTagPos                takes texttag t, real x, real y, real heightOffset returns nothing
native SetTextTagPosUnit            takes texttag t, unit whichUnit, real heightOffset returns nothing
native SetTextTagColor              takes texttag t, integer red, integer green, integer blue, integer alpha returns nothing
native SetTextTagVelocity           takes texttag t, real xvel, real yvel returns nothing
native SetTextTagVisibility         takes texttag t, boolean flag returns nothing