Page MenuHomeFeedback Tracker

getObjectTextures and getObjectsMaterials dont work on simple objects
Feedback, NormalPublic

Description

You can set textures and materials to simple objects created from a class yet the getters return empty arrays.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Run any mission with debug console
  2. 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];
  1. 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"]]

Event Timeline

SaMatra created this task.Sun, Oct 27, 8:33 AM
SaMatra renamed this task from getObjectTextures and getObjectsMaterials doesnt work on simple objects to getObjectTextures and getObjectsMaterials dont work on simple objects.

Revision: 152322

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Sun, Oct 27, 12:52 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.