Right we had this problem recently nightstalker so heres the soloution
_Unit is the unit to change texture on
* is a number to define a member of the array "hiddenselections" from the config file.
_texture sjould bea texture with a path to direct OFP into the addon it is located
_Unit setobjecttexture [ * , _Texture ]
NOTE: all the textures in the hidden selection (defined in the O2 model) will be changed to the set texture so watch how you use this
Here is anexample line from a script (_unit is defined by passing "this" into an init line script)
_unit setobjecttexture [ 3 , "\AddonName\newtexture.paa"
where the hidden selections might read like this from the config:
hiddenselections = [selection0,selection1,selection2,CHANGINGTEXTUREselection3,selection4,selection5];
hope this helps, if your still confused try unpacking something like the OFP truck from the OFP demo and looking at that, or give me an msn message and i'll run you through it
Iain
Ron McAsskick
Scripter for Nightstalker mod
Creator of Vietnam CTI