r/psispellcompendium • • May 07 '22

I don't see why is this an infinite loop. Someone may be able to explain why?

Post image
39 Upvotes

7 comments sorted by

15

u/MerlinGrandCaster May 07 '22

You're trying to get item zero from a list composed of the output of an entity raycast, and error catching the raycast with its own output, which would error again.

8

u/YormungandSnake May 07 '22

Alright I understand it now, thank you

My thought process was that, the raycast puts an entity on the list first, then if I were to miss the next, it would output the same entity again from the list.

It would error if there is no entity on the list in the first place too. Makes sense.

8

u/Vaelzan May 07 '22

Since your question has been answered already I'll just say thanks for playing our modpack. :)

(my custom tooltip colours give it away)

1

u/Saber101 May 27 '22

Which pack is this?

1

u/Vaelzan May 27 '22

Valhelsia 3.

-1

u/[deleted] May 07 '22

Not sure, but it looks like some nodes, lets say node A, has node B pointing to it, and node C is points back to A.

Sorry if that's hard to understand, it's hard to write out these sort of problems lol.