Player Target Range

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!)

Player Target Range

Postby DnB-Freak » Wed Nov 08, 2017 8:40 am

I'm using a complex script which is dependent on the players target in range:
SetActivatorToTarget(0); It doesn't work beyond 1024 mu.
Is it possible to extend it in any manner?
DnB-Freak
Drum and Bass in ya face
 
Joined: 19 May 2013

Re: Player Target Range

Postby DnB-Freak » Sat Nov 11, 2017 6:57 am

Is the question to difficult or is it just uninteresting?
DnB-Freak
Drum and Bass in ya face
 
Joined: 19 May 2013

Re: Player Target Range

Postby Blue Shadow » Sat Nov 11, 2017 9:36 am

The range is hard-coded. It'd require an engine change to be extendable.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Player Target Range

Postby jdagenet » Sat Nov 11, 2017 10:16 am

I’d assume something like PickActor could be used if a user needed a specific range.
jdagenet
 
Joined: 09 Aug 2011

Re: Player Target Range

Postby DnB-Freak » Sun Nov 12, 2017 11:05 am

PickActor seems interesting, I'll try that one.

Thanks for the tips and info, guys :)
DnB-Freak
Drum and Bass in ya face
 
Joined: 19 May 2013


Return to Scripting

Who is online

Users browsing this forum: No registered users and 3 guests