Page MenuHomeFeedback Tracker

getContainerMaxLoad creating new entities - performance improvement
New, NormalPublic

Description

Hi,

The scripting command "getContainerMaxLoad" creates a new local simulated object every time it is ran.

Details

Severity
Major
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Steps

  1. Run,
logEntities;
  1. Note down the Out vehicles count.
  2. Run the following script,
getContainerMaxLoad uniform player
  1. Now run,
logEntities;
  1. You will see the following,
> Loc:1, ForDel:0, Dstr:0, DmgDstr:0, DmgDead:0, Sim:1, Inv: 0, AnyPl:0, Out: 0, NetID:0:0, Pos: [0.000000][0.000000][0.000000], N:Supply20
  1. Repeat, will create new entities every time.

Video
https://streamable.com/8ph85

Event Timeline

Digitals created this task.Mar 31 2020, 8:28 PM
Digitals updated the task description. (Show Details)Mar 31 2020, 8:30 PM

Added video of this issue occurring: https://streamable.com/8ph85

Digitals updated the task description. (Show Details)Apr 1 2020, 10:58 AM
Digitals edited Steps To Reproduce. (Show Details)