Return value for setObjectTexture and setObjectTextureGlobal
New, NormalPublic

Description

Hello,

i'm wondering if you could add a return value for setObjectTexture and setObjectTextureGlobal, which would be true or false when the texture is found or not.
At the moment we get a warning like this one :

Warning Message: Picture textures\gangs\16.paa not found

I would like to be able to do something like this :

				_check = _obj setObjectTextureGlobal [0,"Textures\gangs\16.paa"];
				if(_check) then {
					// texture ok, do something
				} else {
					// texture not found, do something else 
				};

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
reekoj created this task.May 16 2018, 2:25 PM
reekoj updated the task description. (Show Details)May 16 2018, 2:30 PM
dedmen added a subscriber: dedmen.EditedMay 18 2018, 11:15 AM

@BI This is easy to implement. Just check if texture was null. o7