Find linetarget of any actor

Moderator: GZDoom Developers

Post Reply
User avatar
FDARI
Posts: 1097
Joined: Tue Nov 03, 2009 9:19 am

Find linetarget of any actor

Post by FDARI »

There has been the occasional need to find out exactly what something is looking at, even when this isn't a player. Mostly when a camera is acting as a player proxy. To accomodate this need, I propose the pointer selector AAPTR_GET_LINETARGET. Does exactly the same as AAPTR_PLAYER_GETTARGET, but for all actors.

See also: http://forum.zdoom.org/viewtopic.php?f=34&t=31493 (compare pointers)
Attachments
aaptr_get_linetarget.zip
(1.14 KiB) Downloaded 112 times
Last edited by FDARI on Sun Dec 11, 2011 8:48 am, edited 1 time in total.
User avatar
Nash
 
 
Posts: 17485
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Find linetarget of any actor

Post by Nash »

This will be immensely useful for doing things like selecting an actor via a mouse cursor on screen!
User avatar
Nightfall
Posts: 555
Joined: Thu Aug 06, 2009 4:00 am
Location: Finland

Re: Find linetarget of any actor

Post by Nightfall »

Hope this gets in.. I can see use for this!
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”