Auto Targeting

by Red Hall Dev
Super efficient automatic targeting [More]
To download this demo for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://RedHallDev.AutoTargeting##version=6

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 1.1
Date added: Jul 6 2015
Last updated: Aug 23 2015
2 fans
Breif Description

Automatically target enemies on your screen with minimal possible CPU at maximum speed of target acquisition.

Mechanical Description

Rather than using the brute force approach of constantly scanning for enemies this will instead only update what target is selected when either you or another mob in your view changes location.

In the case of a mob being deleted it will remember who saw it, move to a null location and then tell all who had it targeted to update their target.

In the case of a mob being teleported you can simply call relocate() before it is teleported. Now it will do the same as being deleted. It will move to a null location until you are ready for it to be moved to the new location. When it is relocated it will let every mob that had it targeted know to update.