OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: mikeb on 24 Aug 2002, 23:47:00

Title: SetObjectTexture
Post by: mikeb on 24 Aug 2002, 23:47:00
Can anyone please explain how the setobjecttexture command to me.

I looked at the BIS forum and put.....

 this setobjecttexture [0,"rus_vlajka.pac"]

... into the init of a 5t truck but nothing happened.

Any idea what's going wrong and what other vehicles can be used with the command.
Title: Re:SetObjectTexture
Post by: seanver on 25 Aug 2002, 00:00:02
what are you trying to do?
Title: Re:SetObjectTexture
Post by: mikeb on 25 Aug 2002, 00:02:11
I'm not actually  that sure!

I was just trying to test what the command did.  Apparently it adds the specified jpg or whatever as a texture on the side of the vehicle, and apparently it works on the 5t truck, but I don't see anything when I try it.
Title: Re:SetObjectTexture
Post by: tai mai shu on 25 Aug 2002, 00:03:43
it sets the texture of the flags lol, usa_vlajka.pac makes it a usa flag
while rus_vlajka.pac sets it russian
Title: Re:SetObjectTexture
Post by: Messiah on 25 Aug 2002, 00:04:50
yep, it does.... this is taken from an init field of my truck with a medic patch on

this setobjectexture [0, "\flags\redcross.jpg"

im using the offical flag pack.... just replace the flags bit with the russian one...

:thumbsup:
Title: Re:SetObjectTexture
Post by: mikeb on 25 Aug 2002, 00:05:31
So are the flags meant to appear on the side of the truck?  Because I still don't see them
Title: Re:SetObjectTexture
Post by: mikeb on 25 Aug 2002, 00:06:47
Messiah, did you use the normal west 5t truck?
Title: Re:SetObjectTexture
Post by: Messiah on 25 Aug 2002, 00:07:12
they only work on certain trucks - 5t covered, civil truck, URAL
Title: Re:SetObjectTexture
Post by: mikeb on 25 Aug 2002, 00:11:19
Working now!

God knows what was going wrong..

Cheers all