You can set textures and materials to simple objects created from a class yet the getters return empty arrays.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
Steps To Reproduce
- Run any mission with debug console
- Run following code:
obj_simple = createSimpleObject ["VR_Area_01_square_2x2_grey_F", player modelToWorldWorld [-2,3,1]]; obj_simple setObjectTexture [0, "#(argb,8,8,3)color(1,0,0,1)"]; obj_simple setObjectMaterial [0, "a3\characters_f_bootcamp\data\vr_soldier_f.rvmat"]; obj_full = createVehicle ["VR_Area_01_square_2x2_grey_F", player modelToWorld [2,3,1], [], 0, "CAN_COLLIDE"]; obj_full setObjectTexture [0, "#(argb,8,8,3)color(1,0,0,1)"]; obj_full setObjectMaterial [0, "a3\characters_f_bootcamp\data\vr_soldier_f.rvmat"]; ["simple", getObjectTextures obj_simple, getObjectMaterials obj_simple, "full", getObjectTextures obj_full, getObjectMaterials obj_full];
- Observe both objects having custom texture and material yet script returns ["simple",[],[],"full",["#(argb,8,8,3)color(1,0,0,1)"],["a3\characters_f_bootcamp\data\vr_soldier_f.rvmat"]]