Jump to content
Sign in to follow this  
brsseb

"setobjecttexture"-function - need help

Recommended Posts

Hi

Got a problem; not sure how to use the SetObjectTexture function properly. Can anyone give me an example or description of this command since its very little documented, especially we need to know what the first parameter means.

brsseb (and rubble maker)

Share this post


Link to post
Share on other sites

AFAIK, the first parameter is the object where you want to change the texture, ie: a flagmast. Dunno exactly but I assume that only one changeable texture is allowed per object.

Share this post


Link to post
Share on other sites

The number is the index of the array defined in the config as hiddenSelections.

eg.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

..

..

hiddenSelections[]={"first_bit", "second_bit", "medic"};

..

<span id='postcolor'>

now to settexture for the second bit the number would be 1 (first element in an array is 0).

Does anyone know if hiddenSelections work with anything other than Men, Im going to try and get some side plates working on my Panther G but having a few probs atm - mind you its more of a static crate than a tank atm in terms of LODs.

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  

×