OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Serial Killer on 28 Jun 2005, 11:50:14
-
If you're looking BIS vehicles with oxygen, you can see a little square named 'clan', where the player's squad's/clan's logo appeares, when he boards the vehicle. Does this mean that I can also add my custom icons on it by SetObjectTexture command? If yes - Could you explain how can I do it?
Thanks! :)
-
Yes.
Read the comref. I presume you just stick a .jpg of appropriate dimensions in the mission folder.
-
@6q - replies like that are not helpful. if you are going to respond to a question, at least know enough about it to be constructive.
@serial killer - you may have more luck answering this in the addons boards... moving the thread.
-
@ serial killer: what are you aiming at exactly?
your own patch in multiplayer or patches for addons in general (like random numbers...)?
anyway, the patch must be .paa or .pac afaik cos jpgs dont handle transparancy etc.
if you're looking for a way to set custom changeable patches, here's a little tut for you:
1. make a plane in o2, add it to the model and texture it with any of your prospective textures. make it a named selection (e.g. patch1).
2. add your selection name to the cgfmodels section of the config
3. add your selection to the hiddenselection array of your vehicle in the cfgvehicles section. e.g. hiddenselections[]={"patch1", "patch2"};
4. the patches will not appear in game now. they will be 'texturable' via the setobjecttexture command. e.g. this setobjecttexture [0,"\yourpboname\texture1.paa"] -> would set texture1.pac on the first element in the hiddenselections array
hope that helps... ;)
-
or if your making a mission and have the picture in the mission folder just put:
This setObjectTexture [0, "Texture.jpg"]
in the units INIT box.
-
or if your making a mission and have the picture in the mission folder just put:
This setObjectTexture [0, "Texture.jpg"]
in the units INIT box.
Thank you.