Can you tell me how to fix In-World Text on the screen like HUD Text?
I’m more pleased if there is a Code that includes the template.
These are the scripts templates for it, that i keep on a file because i can never remember it.
(if you cant paste them due to language differences, then I will make a code for you)
Normal
actions
{
Create In-World Text(Event Player, Custom String("Text"), Update Every Frame(Eye Position(Event Player) + 100 * (Custom String(
"Left / Right Position") * -1 / 2 * Cross Product(Facing Direction Of(Event Player), Direction From Angles(
Horizontal Angle From Direction(Facing Direction Of(Event Player)), Vertical Angle From Direction(Facing Direction Of(
Event Player)) - 90)) + (Custom String("Up / Down Position") / 2 - 0.200) * Direction From Angles(
Horizontal Angle From Direction(Facing Direction Of(Event Player)), Vertical Angle From Direction(Facing Direction Of(
Event Player)) - 90) + 3 * Facing Direction Of(Event Player))), 2, Do Not Clip, Visible To Position and String, Color(White),
Default Visibility);
}
With a progress bar
actions
{
Create Progress Bar In-World Text(Event Player, 0, Custom String("Text"), Update Every Frame(Eye Position(Event Player) + 100 * (Custom String(
"Left / Right Position") * -1 / 2 * Cross Product(Facing Direction Of(Event Player), Direction From Angles(
Horizontal Angle From Direction(Facing Direction Of(Event Player)), Vertical Angle From Direction(Facing Direction Of(
Event Player)) - 90)) + (Custom String("Up / Down Position") / 2 - 0.200) * Direction From Angles(
Horizontal Angle From Direction(Facing Direction Of(Event Player)), Vertical Angle From Direction(Facing Direction Of(
Event Player)) - 90) + 3 * Facing Direction Of(Event Player))), 2, Do Not Clip, Color(White), Color(White), Visible To Position and Values,
Default Visibility);
}
Just replace the ‘Custom String(“Left/Right Position”)’ and ‘Custom String(“Up/Down Position”)’ with numbers, their Custom String by default to known which numbers modify its position.
That previous paragraph I also keep attached to the file. I normally replace it after pasting it into the workshop, instead of before. But either works.
1 Like
Oh, thank you so much! There is no problem with copying. Because I can change the language setting.