Page MenuHomeFeedback Tracker

Setobjecttextures now not working! What's changed?
New, WishlistPublic

Description

Hi - I've been happily using the setobjecttexture command on a custom uniform and then having it appear on multiplayer using the following script:

_unit = _this select 0;
_texture = _this select 1;
_unit setObjectTexture _texture;

in conjunction with this via the init. line: [[S1,0,"Images\SAS_Uniform_01.paa"],"fnc_objecttexture",nil,false] spawn BIS_fnc_MP;

It's been alright for a week. Now I try to play my scenario and everybody is in their underwear. What gives? Is this a glitch? Spent ages trying to get it to work, had it working, then the latest patch seems to have made it stop working. It works fine in the editor, but when I export it to the single player mission it stops working.

Details

Legacy ID
3195229077
Severity
None
Resolution
Open
Reproducibility
Always
Category
Visual-Characters

Event Timeline

Bohemia edited Steps To Reproduce. (Show Details)Sep 28 2013, 9:40 PM
Bohemia edited Additional Information. (Show Details)
Bohemia set Category to Visual-Characters.
Bohemia set Reproducibility to Always.
Bohemia set Severity to None.
Bohemia set Resolution to Open.
Bohemia set Legacy ID to 3195229077.May 7 2016, 4:59 PM
Bohemia added a subscriber: AD2001.Sep 28 2013, 9:40 PM
Bohemia added a subscriber: Bohemia.May 7 2016, 4:59 PM

Just wondering if something's been changed that hasn't been listed in the changelog? Or if there's something in the changelog that would effect this and I've missed it?

If possible, or if anyone has the time, can someone confirm this post?

Does anyone know of a way to get the setobjecttexture command working on uniforms in single AND multiplayer? I'm quite sure it's not working since the fixathon. I've tried everything I can think of.

instead of

[[S1,0,"Images\SAS_Uniform_01.paa"],"fnc_objecttexture",nil,false] spawn BIS_fnc_MP;

try

S1,[0,"Images\SAS_Uniform_01.paa","fnc_objecttexture",nil,false] spawn BIS_fnc_MP;

_this select 1 in your example is 0 but should be [0,"Images\SAS_Uniform_01.paa"]

Hi Killzone, no joy I'm afraid.

I don't understand why everyone is in their underwear. This could only happen if you remove their uniforms. Do you remove their uniforms? Because setObjectTexture 0 is applied to the uniform and if there is none nothing would happen.

I know right! Not removing uniforms. Strangely enough, it was working just fine before BI's fixathon. Now I don't know what to do.

Worked for me.

I set up

fnc_objecttexture = {
_unit = _this select 0;
_texture = _this select 1;
_unit setObjectTexture _texture;
};

on my client and executed

<myplayerobject>,[0,"<pathtosometexture>","fnc_objecttexture",nil,false] spawn BIS_fnc_MP;

on the server and it changed uniform texture on my player

Where did you put this:

fnc_objecttexture = {
_unit = _this select 0;
_texture = _this select 1;
_unit setObjectTexture _texture;
};

and did you put this:

<myplayerobject>,[0,"<pathtosometexture>","fnc_objecttexture",nil,false] spawn BIS_fnc_MP;

in the init.sqf?

I've tried the above in the init.sqf and still no luck. That said, perhaps I'm putting the first script in the wrong place. How did you set it up? I put it into its own .sqf, was that wrong?

I've also tried putting both in the init.sqf - that didn't work either. I wonder if I only see the underwear effect on Single player?