Jump to content
Sign in to follow this  
Meatball0311

How to setObjectMaterialGlobal to helmet

Recommended Posts

I am trying to use an addAction to change the material of a helmet.  Is it possible to do this to a helmet?

_helmet = headgear player;

_helmet setObjectMaterialGlobal [8, "soc_gear\data\mat\VLite Glow\SOC_VLite_Green_Glow.rvmat"];

Share this post


Link to post
Share on other sites

No unfortunately, setobjecttexture/material only works on uniforms and backpacks so far as unit loudouts go.

 

I raised it in the scripting discussion thread once before: https://forums.bistudio.com/topic/151099-scripting-discussion-dev-branch/page-35

 

Like bad benson said there, it seems there is something fundamentally different in the simulation of backpacks compared to other wearable items, where bags are more of an "entity" rather than just some proxy object.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×