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.
Description
Description
Details
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 }];
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
Comment Actions
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
Comment Actions
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!