I see it is not a big deal to make it but the only problem is “to string” in in-world text. It would be nice if we can leave only “to position” so never mind what we set to string it stays and only its position changes. Otherwise we need to create all in-world text objects with dynamic position values.
Actually its not most problem here.
You just can create as example in world text which allow [1] element of array. If value in array changing - same changing In-World text without any operations.
It means I cannot show some element of same array at same time.
I want to be able to “print” my array and manage it by the following code:
example of an item of floating around a player menu
actions
{
Create In-World Text(Event Player, Hero Icon String(Value In Array(Player Variable(Event Player, B), Player Variable(Event Player,
I))), Vector(Add(X Component Of(Position Of(Event Player)), Multiply(Cosine From Degrees(Add(Player Variable(Event Player, Z),
Player Variable(Event Player, S))), Player Variable(Event Player, S))), Y Component Of(World Vector Of(Vector(0, 1, 0),
Event Player, Rotation And Translation)), Add(Z Component Of(Position Of(Event Player)), Multiply(Sine From Degrees(Add(
Player Variable(Event Player, Z), Player Variable(Event Player, S))), Player Variable(Event Player, S)))), 4,
Clip Against Surfaces, Visible To Position and String, White, Default Visibility);
}
It would be nice to use in my build base game mod.
Actually real problem was to create a tape. Any positions or showing its not problem bcz workshop have instruments to show anything and everywhere. But will be hard to make a tape like Down and Up. Now with help of community i imagine how i can create this ![]()
There is no a problem to show one item per a frame but it has a problem with a dynamic array and displaying at least 2 items per a frame.
What you mean about “Frame”?
If we could use classes in workshop you could use a linked-list or any of the other inherit classes. But classes and objects in workshop (and functions) might be just a dream XD
by frame I mean the picture with all objects for 1 short time period.
What is problem then? Just create some In-World Texts like did Shanalotte and change their position?
Is it static or dynamic array as input data?
in OW arrays always dinamic, so as input data you can use as example some element of array, as example picture will be hero icon, and some array A will contain heroes of OW, and your picture will be [2] element of array, so if you change 2 element or remove him (with 3+ more elements of array), already will be another picture.
You are not answering my question.
Okay. I will give you an example.
I want to display in a loop 5 different heroes from array A as always shown Icons.
How you are going to do it?
What you mean “5 different heroes in a loop?” If you just want to show 5 heroes, just create 5 in world texts with Hero-Icons lol
But if you want maybe 1 element, then second one, then 3… 4 etc. in One In-World Text element, you creating In-World Text which will show [0] element of array A.
As example it will be:
0 - Mercy
1 - Genji
2 - Torb
3 - Rein
4 - Hanzo
If you press some button, as example it will be Primary Fire, you just use:
1, Append to Array A (first of Array A)
Will be
0 - Mercy
1 - Genji
2 - Torb
3 - Rein
4 - Hanzo
5 - Mercy
- Then you use Remove from Array A (First of Array A)
Will be
0 - Genji
1 - Torb
2 - Rein
3 - Hanzo
4 - Mercy
And each time you press this button hero will change.
Now i answered on your question, or you meant something else?
I think what he meant is : Do you want to create the effect and value in a loop or set them up manually
Like :
For i = 0 to 4
create hud text ( value in array(X), index(i) )
next i
or you just spamm :
create hud text ( value in array(X), index(0) )
create hud text ( value in array(X), index(1) )
create hud text ( value in array(X), index(2) )
create hud text ( value in array(X), index(3) )
create hud text ( value in array(X), index(4) )
That is a static input. I am saying about a rule that can show so many different in-world text objects as many items are in an array. Can you do it?
exactly this way I mean
So dynamic in-world text creation? I think its easily doable, but you need to turn the reevaluation of, because position and text values are tied to the iterator variable.
That’s the problem because you cannot affect their position anymore.
I can make a circle clockwise with equal space any amount of items of an array with a static position around a player or I can make a moving clockwise or anticlockwise a chosen item that you can move around a player.
It would be really nice to have an option to fix chosen vars and keep other ones dynamically updated. Also an option to lock and unlock them.
I just suggested to you one variant
Nothing of it would work in a loop…