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!)
DnB-Freak
Posts: 304
Joined: Sun May 19, 2013 12:09 pm

Player Target Range

Post by DnB-Freak »

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
Posts: 304
Joined: Sun May 19, 2013 12:09 pm

Re: Player Target Range

Post by DnB-Freak »

Is the question to difficult or is it just uninteresting?
User avatar
Blue Shadow
Posts: 4906
Joined: Sun Nov 14, 2010 12:59 am
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Player Target Range

Post by Blue Shadow »

The range is hard-coded. It'd require an engine change to be extendable.
jdagenet
Posts: 77
Joined: Tue Aug 09, 2011 10:26 pm

Re: Player Target Range

Post by jdagenet »

I’d assume something like PickActor could be used if a user needed a specific range.
DnB-Freak
Posts: 304
Joined: Sun May 19, 2013 12:09 pm

Re: Player Target Range

Post by DnB-Freak »

PickActor seems interesting, I'll try that one.

Thanks for the tips and info, guys :)

Return to “Scripting”