Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Is there a way to use the "let" special word with two or more actors that contain identically named variables but that do not inherit from each other or a common ancestor?
I'm trying to make a Status Bar that automatically displays information about in-range actors. I have it working, except that there doesn't appear to be a way to check line of sight in ui context... Is that intentional, or are there a bunch of functions thay just don't have clearscope? I can't think of how this would affect the play environment.
Or is there a different way I should be doing this than as part of a Status Bar?
if (actor1.Distance2d(actor2) <= (actor1.radius + actor2.radius) * 1.414) {} // Not 100% accurate for the same reason - essentially calculates the radius at the diagonal of the actor (radius * sqrt(2)) and uses that instead
Is it possible to convert a string into a StateLabel at runtime? Since you can't have an array of StateLabels in ZScript, I have an array of strings. But unlike the StateLabel variables that I use ResolveState on to turn them into States, ResolveState rejects strings, and there doesn't seem to be any similar function that will take a string and convert it into a StateLabel. I'm currently having to use a lookup table to resolve this, which is annoying.