Page MenuHomeFeedback Tracker

setVariable has no effect on objects created with createSimpleObject
New, NormalPublic

Description

Variables can't be stored or retreived on simple objects (using the new command: createSimpleObject) using setVariable/getVariable.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
10586.494
Category
Scripting
Steps To Reproduce

Debug in editor:

simple_obj = createSimpleObject [ "a3\structures_f_exp\infrastructure\bridges\bridgesea_01_pillar_f.p3d", (position player) ];
simple_obj setVariable [ "wow", true ];
_get_simple_var = simple_obj getVariable "wow";
hint str _event;

No hint fires because _get_simple_var is nil.

versus:

real_obj = "Land_TreeBin_F" createVehicle (position player);
real_obj setVariable [ "okay", true ];
_get_real_var = real_obj getVariable "okay";
hint str _get_real_var;

Hint fires as "true" as expected.

Event Timeline

opec667 created this task.Jul 26 2016, 12:31 AM
neokika assigned this task to JiriWainar.Nov 1 2016, 1:03 PM