Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Changing flag of unit soldier  (Read 3735 times)

0 Members and 1 Guest are viewing this topic.

Offline Odyseus

  • Members
  • *
Changing flag of unit soldier
« on: 25 Jul 2012, 22:37:42 »
Hello guys. How do i go about changing the flag of an unit soldier uniforms? Is there a script we can use?

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Changing flag of unit soldier
« Reply #1 on: 05 Aug 2012, 10:46:06 »
Unfortunately not (if you mean the flag on their uniforms). Although SOME units do allow you to change their textures, but sadly not all, and I do not have a list of those units you can do it with - you'd just have to experiment. Try this on your unit:

unitName setObjectTexture [0,'#(argb,8,8,3)color(0,1,0,1)'][/url]

If it turns GREEN, it means its textures can be changed. Otherwise, you're out of luck.

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"