zgmrvn 95 Posted July 18, 2013 Hi, For a mission i'm working on, i need to be able to switch opacity of an object from 100% to 50% and vice-versa. My research brought me to config.cpp which seems to be used to make and configure addons but i do not want players to have to download anything but the mission. when i've discovered config.cpp i was thinking about something like create a new class which use the same 3d model and the same texture but with an argument in hiddenSelections[] or hiddenMaterialSelections[], then i would be able to replace the texture by setObjectTexture setObjectMaterial, something like that... A simply retextured object would conciderably increase mission weight. how can i do this ? thanks :) Share this post Link to post Share on other sites
kylania 567 Posted July 18, 2013 50% opacity? Huh? You might use hideObject if you wanna remove an object then bring it back. I don't think textures would make something see through though. What kind of object is this that it partially disappears? Share this post Link to post Share on other sites
f2k sel 164 Posted July 18, 2013 (edited) using obj settexture [1,""] removes the texture from the bed of the OPFOR truck. I've stuck a sub or a cargo container on it. The ATV can be totally transparent apart from shadow. But most other vehicles don't seem to use the same texture method. The other major floor is that disableCollisionWith does not work with vehicle to vehicle/object and so incorrectly placed object can cause damage or unwanted vehicle movement. (Why do they tease us). http://feedback.arma3.com/view.php?id=7842 Edited July 18, 2013 by F2k Sel Share this post Link to post Share on other sites
zgmrvn 95 Posted July 19, 2013 @kylania: hideObject do not match with the effect i want. I need an half transparency of the object. @F2k Sel: i think you mean setObjectTexture, but if there is nothing in hiddenSelections array of the object, nothing happen. see what i'm trying to do: Share this post Link to post Share on other sites
liquidpinky 11 Posted July 19, 2013 Would it not work by switching in a texture with an alpha layer in place of the origonal? Share this post Link to post Share on other sites
zgmrvn 95 Posted July 19, 2013 (edited) I've aleady tryed to replace it by a CA texture with setObjectTexture and setObjectMaterial but as i said, there is an array in each object settings, if this one is empty, you can't replace anything. Edited July 19, 2013 by Zigomarvin Share this post Link to post Share on other sites
.kju 3240 Posted July 22, 2013 the model must have selections (areas) defined to be able to manipulate it via scripting. if it doesnt have, there is no way Share this post Link to post Share on other sites