Home   Help Search Login Register  

Author Topic: Flags  (Read 696 times)

0 Members and 1 Guest are viewing this topic.

SharkDog

  • Guest
Flags
« on: 01 May 2003, 20:51:40 »
Whats the command again for putting flags on something again? like on units, flagpoles, jeeps etc etc....

Kaliyuga

  • Guest
Re:Flags
« Reply #1 on: 01 May 2003, 21:08:32 »
well for a flagpole you use this in the init field:



this setflagtexture "flagname"



the command ref says unitname setflagtexture flagname

so I'm not too sure if you can attach to a vehicle through the same command....   i've never tried it myself....

usa_vlajka.pac - American Flag
west_vlajka.pac - NATO Flag
rus_vlajka.pac - Soviet Flag
« Last Edit: 01 May 2003, 21:10:32 by Kaliyuga »

SharkDog

  • Guest
Re:Flags
« Reply #2 on: 01 May 2003, 21:34:03 »
Thanks :D

Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:Flags
« Reply #3 on: 01 May 2003, 23:03:31 »
You can place flag jpegs (or any other image for that matter) on certain objects (civ truck being one of them) by using the "setobjecttexture" command. From ComRef:

object setObjectTexture texture
Operand types:
    object: Object
    texture: Array
Compatibility:
    Version 1.75 required.
Type of returned value:
    Nothing
Description:
    Null

This will make the image appear on the canvas cover on the side of a truck for example. If you have a flag carrier get in a vehicle, the flag is placed on the front fender on a short pole. Once the flag carrier leaves the vehicle, the flag will once again appear on his back. I know this happens for a civ truck, but I do not know what happens if the flag carrier enters a tank or apc or plane. See for yourself! I wanted to have a flag on a truck or jeep like a staff car for an officer and it worked until the flag carrier left the vehicle. :(
Check out my Camouflage Collection! New items added 31 July 2005.