Page MenuHomeFeedback Tracker

addAction condition's _this parameter acts weirdly (alternates between _this and selected subordinate)
New, NormalPublic

Description

Hello, the title says it: the _this parameter acts weirdly and alternates between the "caller person to whom the action is shown" (from the wiki) and the selected unit.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  • place a player unit in the editor
  • place a subordinate
  • run the mission
  • pause the game to open the debug console and run the following code
player addAction ["Action", {}, nil, 1.5, true, true, "", toString { diag_log [_target, _this, _originalTarget]; true }];
  • unpause
  • press F2 to select the subordinate
  • press F2 again to deselect the subordinate

Result in RPT:

15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 Unknown attribute itemsCmd
15:43:06 Unknown attribute itemsCmd
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:2,B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:2,B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:2,B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:2,B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:2,B Alpha 1-1:4 (Lou Montana)]
15:43:06 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]
15:43:07 [B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana),B Alpha 1-1:4 (Lou Montana)]

Note the Unknown attribute itemsCmd.

Event Timeline

LouMontana changed Severity from None to Minor.Jul 30 2022, 3:58 PM
LouMontana changed Reproducibility from N/A to Always.

When you press f2 the action gets shown to squad unit hence you see it printed, so you get output for 2 units instead of 1. As soon as you move beyond 50m it disappears. So working as expected

'Unknown attribute itemsCmd' should be fixed in 149757

the action gets shown to squad unit

ah yes, got it after using the advanced commanding menu - it also happens when only one unit is selected, as planned.
Thanks for the check!