Jump to content
Sign in to follow this  
Justin_Smith

User's Custom Vehicle Textures? Is it Possible?

Recommended Posts

Hey,

I had a thought but I wasn't quite sure if its possible with Arma 2's scripting abilities. Is it possible for someone else to use their own texture file for a vehicle without a addon and use it in a mission and other players to be able to view it also? Its kind of how the squad.xml setup would be when the logo gets applied to their vehicles but instead of it applying a logo is it possible for it to be able to apply a full vehicle texture of their own like in a totally new .xml file? Let me know if its possible it seem it might be but not sure if Arma 2 has a limit.

Share this post


Link to post
Share on other sites

Objects that are prepared for config retexturing also can have "mission defined" textures. To quickly find out if the desired vehicle is prepared for it, place it in the editor and type this in the init line of the vehicle/object:

this setObjectTexture [0,""]

Now preview it and if the vehicle/object now looks...erm...well...like cloaked, then it is. Create a texture, place it in your mission folder and use the above command to apply your texture.

Be aware that such textures drastically increase mission file size that people have to download.

Share this post


Link to post
Share on other sites
Myke;2067443']Objects that are prepared for config retexturing also can have "mission defined" textures. To quickly find out if the desired vehicle is prepared for it' date=' place it in the editor and type this in the init line of the vehicle/object:

this setObjectTexture [0,""]

Now preview it and if the vehicle/object now looks...erm...well...like cloaked, then it is. Create a texture, place it in your mission folder and use the above command to apply your texture.

Be aware that such textures drastically increase mission file size that people have to download.[/quote']

Thanks for replying in such short notice Myke, I mean I know that command but I was wondering if I could have it work from the client side and not from server?

Share this post


Link to post
Share on other sites

I don't know how you would set it up to run client side instead of server side, but I did tinker with having Arrowhead M2A3 Bradley IFV's on Chernarus in woodland camo for a Domination I'm working on. Well I found out that if you have the vehicle set to respawn if destroyed/abandoned it will NOT respawn with the custom texture.

There may be a script for it, or it maybe possable to write one, but I thought you may like that bit of information incase you where planning on your vehicle being respawnable.

Regards Hawk.

Share this post


Link to post
Share on other sites

init.sqf

if (!isServer) then
{
  bradley setObjectTexture [0,"bradley.jpg"]
}

Share this post


Link to post
Share on other sites

It wont hurt if it's run on the server aswell but if you insist to avoid it, Kushluk's code will work.

For a possible respawn script, you would have to "mark" the vehicle as retextured and apply the texture on the respawned vehicle afterwards.

Probably setVariable and getVariable could be of help here.

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  

×