Variables can't be stored or retreived on simple objects (using the new command: createSimpleObject) using setVariable/getVariable.
Description
Description
Details
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.