Draw something on a player screen within an Actor.

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!)
XxMiltenXx
Posts: 219
Joined: Wed Jan 08, 2014 8:40 am
Graphics Processor: nVidia with Vulkan support
Location: Germany

Draw something on a player screen within an Actor.

Post by XxMiltenXx »

Hello.

I made a rocket that the player can control: once shot the camera switches to the rocket and the player can aim to control the angle,pitch and use the forward/backward keys to alter the speed of said rocket.
Is there anyway to draw something on that players screen from that rocket without having to make a statusbar or similar? My idea was to make like a flight HUD that shows speed/altitude.

I tried using "Screen.dim" but that cannot be used outside a UI/Draw-Function apparently.

Alternatively; Is there anyway to switch Statusbars on the fly? Let's say I have the main Statusbar in SBARINFO and define my rocket statusbar via ZScript, is there anyway to switch between those?

Return to “Scripting”