Page MenuHomeFeedback Tracker

Error defining parameters in vector
New, NormalPublic

Description

Hello!
At the time of writing the mod there was a small problem with the definition of variables in the vector, because of this the operators do not work

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce

Example
test vector = Vector (10.2,1.3,3.5);
float coef = 3.0;

Option 1 - Doesn't Work
test[0] *= coef;
test[1] += coef;
test[2] -= coef;

Option 2 - Works
float a1 = test[0];
a1 *= coef;
test[0] = a1;
float a2 = test[1];
a2 += coef;
test[1] = a2;
float a3 = test[2];
a3 -= coef;
test[2] = a3;

Additional Information

Errors
Operator '*=' not supported with array accessor [] (TODO)
Operator '+=' not supported with array accessor [] (TODO)
Operator '-=' not supported with array accessor [] (TODO)

Event Timeline

komer created this task.Apr 15 2020, 11:42 PM
komer edited Steps To Reproduce. (Show Details)Apr 15 2020, 11:46 PM
komer edited Additional Information. (Show Details)
komer edited Steps To Reproduce. (Show Details)