Portal-aware Vector3 between two points in UI Scope

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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!)
Post Reply
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

Portal-aware Vector3 between two points in UI Scope

Post by Gutawer »

So, I've gotten to a point where I need to get the portal-aware Vector3 between two points in UI Scope (namely, e.viewPos in the renderOverlay event, and the position of another actor). Since this is UI scope, I cannot spawn actors in these points to call vec3To on them, and I cannot do subtract one point from another to get the Vector3 between them, as this will only work without portals - I have to do this only using functions available in UI scope. Any ideas?
User avatar
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: Portal-aware Vector3 between two points in UI Scope

Post by Major Cooke »

Post Reply

Return to “Scripting”