Page MenuHomeFeedback Tracker

"attackTarget" command to return AI unit current target
Closed, ResolvedPublic

Description

"assignedTarget" often returns nothing, even when the AI is shooting at something.

For AI mods, its very important to know what an AI unit is shooting at, right now we have no way.

Details

Severity
Feature
Resolution
Fixed
Reproducibility
Always
Operating System
Windows 10 x64
Category
AI Aiming / Shooting
Steps To Reproduce
Before:
<unit> addEventHandler [
	'FiredMan',
	{
		// what is he shooting at?
	}
];

After:
<unit> addEventHandler [
	'FiredMan',
	{
		params ['_unit'];
		_unit doSuppressiveFire (attackTarget _unit);				// suppress the target instead of regular fire
		_unit removeEventHandler ['FiredMan',_thisEventHandler];
	}
];
Additional Information

Event Timeline

MDCCLXXVI edited Additional Information. (Show Details)Feb 28 2018, 9:50 AM
dedmen claimed this task.Jun 21 2020, 1:33 PM
dedmen changed the task status from New to Assigned.
dedmen closed this task as Resolved.Jun 28 2020, 3:29 PM
dedmen changed Resolution from Open to Fixed.