Page MenuHomeFeedback Tracker

Return value for setObjectTexture and setObjectTextureGlobal
Closed, ResolvedPublic

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

Event Timeline

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

LouMontana closed this task as Resolved.Jun 10 2021, 6:48 PM
LouMontana added a subscriber: LouMontana.

fixed with fileExists