Getting all actors within FOV & getting sprite as string

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.

Getting all actors within FOV & getting sprite as string

Postby Jarewill » Thu Apr 29, 2021 6:56 am

Hello.

I wanted to ask if there's a way to get all actors within a specified FOV. Kind of like BlockThingsIterator, but also taking into account maximum angle and pitch.
It would also be nice if it could get actors behind walls, as long as they are in the specified FOV and range.

Also is it possible to get the actor's sprite as a string?
I know GetSpriteIndex can be used to retrieve a sprite from a string, but can it be done in reverse?

Thank you.
Jarewill
 
 
 
Joined: 21 Jul 2019

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests