I was trying to make a script to detect if a player looks at a unit or something else when I found it.
Description
Description
Details
Details
- Legacy ID
- 2463046637
- Severity
- None
- Resolution
- No Bug
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
place yourself and a unit (hostile to your side)
look at the unit and open the debug console and use the code:
Hint str cursorTarget
it will return <Null-Object>
Additional Information
After you kill the enemy the command seems to works, it gives you the unit id and group as it should...
Civilians always works...
Event Timeline
Comment Actions
player reveal [cursorTarget, 4];
wouldn't work as cursorTarget is NULL
What happens if you do
{player reveal [_x, 4]} forEach allUnits
Comment Actions
Mass-closing all resolved issues not updated in the last month.
Please PM me in BI Forums (http://forums.bistudio.com/member.php?55374-Fireball) if you feel your bug was closed in error.