Jump to content
Sign in to follow this  
Flat!!!

Custom Faces on Custom Units

Recommended Posts

I have been re-skinning some navy seals and now that I have made some Night operation dressed ones I wonder how I can get the units to use a randomly selected face out of lets say three different ones. So in my custom addon I would have 3 faces in the folder and try to make them select out of these. Also would people see my face in multiplayer as I see it (ofc if they had the addon) or would they see a randomly picked one?

Share this post


Link to post
Share on other sites

Implement a CfgFaces class in your addon-config (e.g. "NightOpFaces") containing an inner class defining the faces you want (e.g. "NightOpFace1, ..., "NightOpFaceN"). Your soldier-classes then just need to point to theses custom faces via attribute faceType, e.g.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> faceType = "NightOpFaces";

Faces are picked randomly, just like with regular soldier-classes, only that this time your faces are the range.

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  

×