Back to the Vavoom Forum Archives


Forum

Tracking enemy

Sat, 01 Jul 2006 10:31:12

Crimson Wizard

I know that using Actor::AimLineAttack() I can know who (what actor) is standing in front of player/another actor (this is written in Actor::linetarget variable). Since it is Actor's function, it does not take care of vertical aim, only horizontal one. Is it possible for Player, 1st - to make Z-axis sensitive aim, literally, - to make program check what his crosshair is pointing at. 2nd - to make check not precisely by crosshair, but in some range around it, let's say - +/-5 degrees by horizontal and vertical axes. (as a result I need to get either reference to actor or player being aimed)
Sat, 01 Jul 2006 14:34:11

Firebrand

I don't know if this might be useful, but now that I'm working with the bots, and when reading your post it came to my mind that there's a method called CanSee that bots use to determine if an item it's within their view range (180

Back to the Vavoom Forum Archives