Page MenuHomeFeedback Tracker

magazinesTurret doesn't accept more than one dimensional arrays anymore, ex: [0,0]
Closed, ResolvedPublic

Description

Since 2.02 magazinesTurret command no longer works with right argument being longer turret path like [0,0], always expects new alternative syntax with first element being array and second being includeEmpty flag.

19:33:41 Error in expression <vehicle player magazinesTurret [0,0]>
19:33:41   Error position: <magazinesTurret [0,0]>
19:33:41   Error Type Number, expected Bool

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
Scripting
Steps To Reproduce
  1. Open editor
  2. Place any tank with commander turret and player inside
  3. Run mission
  4. Execute
vehicle player magazinesTurret [0,0]
  1. Observe scripting error
Additional Information

Command should check if first value in right argument is an array and then treat second value as includeEmpty flag, otherwise treat whole right argument array as turretPath

Event Timeline

SaMatra created this task.Feb 24 2021, 1:42 PM
dedmen claimed this task.Feb 24 2021, 1:48 PM
dedmen changed the task status from New to Assigned.
dedmen set Ref Ticket to AIII-53993.
BIS_fnc_KK added a subscriber: dedmen.
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Feb 24 2021, 3:17 PM
BIS_fnc_KK changed the task status from Assigned to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

Profiling build tomorrow

Pi closed this task as Resolved.Jun 12 2021, 4:43 PM
Pi claimed this task.