Jump to content
Sign in to follow this  
[aps]gnat

setobjecttexture on building

Recommended Posts

Trying to change the color of a named section ("X") of a building like;

_building setobjecttexture[0, "\GNT_Alpha\gfx\LightBlue.paa"]

Doesnt work sad_o.gif

The config is like this;

Quote[/b] ]class CfgPatches

{

class GNTAlpha

{

units[] = {GNTbA};

weapons[] = {};

requiredVersion = 1.75;

};

};

class CfgModels

{

class Default {};

class Building: default {};

class bA : Building

{

sectionsInherit="";

sections[] = {"X"};

};

};

class CfgAmmo

{};

class CfgWeapons

{};

class CfgVehicles

{

class All {};

class Static: All {};

class Fortress: Static {};

class Building: Static {};

class NonStrategic: Building {};

class Strategic: Building {};

class GNTbA: Strategic

{

displayName="Building A";

hiddenselections[] ={"X"};

cost=1000;

accuracy=1000;

vehicleClass = "GNT Alpha";

side=TCivilian;

simulation="house";

icon = "\GNT_Alpha\gfx\Ai";

armor=30000;

scope=2;

model="\GNT_Alpha\bA";

destrType="DestructEngine";

};

Any ideas whats wrong ?

Has someone done a changable Billboard or Sign that maybe I can learn from?

Share this post


Link to post
Share on other sites

setobjecttexture only works on vehicles.

Probably because you define the addon as a building in cfgmodels

Share this post


Link to post
Share on other sites
setobjecttexture only works on vehicles.

hmmmmmmm .... bugger .... thats going to be a problem. mad_o.gif *thinking*

Thx Bratty

Share this post


Link to post
Share on other sites

you can use the same method as the billboards, i know ya gonna hate me for this, but i cant find them, i used to use there set object texture to play movies on them, look for either lcd screen addon or billboard sorry for vagueness. btw setobject texture is not just for vehicles it works on flags too wink_o.gif

Share this post


Link to post
Share on other sites
Guest [B.B.S.] T_D

If you define your building as Thing, setObjectTexture should work.

I read this somewhere here, wait a second.... *presssearchbutton*

Here it is.

Share this post


Link to post
Share on other sites

It should work for mission placed buildings if you follow the directions above. Mapplaced buildings are only possible in VBS1.

Share this post


Link to post
Share on other sites
T_D @ Sep. 25 2006,04:23)]If you define your building as Thing, setObjectTexture should work.

I read this somewhere here, wait a second.... *presssearchbutton*

Here it is.

Thanks TD, nice find but I had tried "Thing" during the testing and I did find;

-It reversed my models (not a big deal)

-Made the letters fall over and lay about oddly on the landscape (big deal)

Share this post


Link to post
Share on other sites
Quote[/b] ]-It reversed my models (not a big deal)

reversed=false;

Have you tried using class target, Gnat?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×