Home   Help Search Login Register  

Author Topic: Black flag  (Read 1639 times)

0 Members and 1 Guest are viewing this topic.

Offline 22jacket

  • Members
  • *
  • I'm a llama!
Black flag
« on: 07 Nov 2007, 14:16:12 »
Hi yer ..

I added a custom flag on flagpole (empty/objects/flag(US).
using  this setflagtexture "cos1.jpg"  this is name of custom flag  but on preview in editior the flag is black..Can anyone tell me how to get my custom flag to show..

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Black flag
« Reply #1 on: 07 Nov 2007, 19:57:51 »
might be that you need the full path to your flag texture, make sure it is also sized in 2^.

So instead of setflagtexture "cos1.jpg", you would have setflagtexture "upstairs\inmybedroom\underthebed\cos1.jpg"

256 X 256 is about normal.

Edit:  Just realised you are trying to use the us flag pole, this comes complete with us flag, so not sure what the result of that would be.
You need to use the empty flagpole, "FlagCarrier".

pole = "FlagCarrier" createvehicle getpos player; pole setFlagTexture "cos1.jpg"

presuming the texture is in your mission folder.


Planck
« Last Edit: 07 Nov 2007, 20:09:46 by Planck »
I know a little about a lot, and a lot about a little.