Page MenuHomeFeedback Tracker

Add scripting command "currentTarget"
Acknowledged, WishlistPublic

Description

currentTarget <vehicle>

  • Would return the object the given unit/gunner is currently targeting at
  • Basically a "AI version" of cursorTarget (would of course work for player too)..
  • Would return the targeted object
  • Example: if (currentTarget loon1 == player) then {hint "loon has a bead on you!!"};

Details

Legacy ID
3102528267
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request

Event Timeline

h- set Category to Feature Request.Aug 27 2015, 7:28 AM
h- set Reproducibility to N/A.
h- set Severity to None.
h- set Resolution to Open.
h- set Legacy ID to 3102528267.May 8 2016, 12:34 PM

Isn't assignedTarget what you're looking for?

h- added a subscriber: h-.May 8 2016, 12:34 PM
h- added a comment.Aug 27 2015, 7:34 PM

No, assignedTarget does exactly what it says, it returns a target that is assigned to the unit (by it's leader, be it the unit itself or a group leader), so the target can be on the other side of the world and still be assigned to the unit.