SA-MP Forums Archive
Is it possible? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is it possible? (/showthread.php?tid=434461)



Is it possible? - Cidiei - 02.05.2013

Hello to all! I wonder if it is possible to remove the windows of buildings in GTA SA. Using the technique employed in Verona Mall! If there is let me know!


Re: Is it possible? - Macluawn - 02.05.2013

No there isnt.


Re: Is it possible? - Cidiei - 02.05.2013

But, as was done verona mall? Sorry for my english!


Re: Is it possible? - vvhy - 02.05.2013

You can remove a window visually if you find the index id for it. Juse use this:

SetObjectMaterial(object, indexid, 0, "none", "none", 0);


Re: Is it possible? - Yashas - 02.05.2013

but windows are not objects they are in the texture??Most of the buildings??


Re: Is it possible? - Black Axe - 02.05.2013

How to do it in Verona mall ?


Re: Is it possible? - Red_Dragon. - 02.05.2013

I suggest removing the whole building using RemoveBuildingForPlayer, but why remove only the windows ?!


Re: Is it possible? - cessil - 02.05.2013

the technique was editing the model and removing the faces of the windows, then modelling in the interiors and lastly the windows, then you also have to replicate the vertex lighting since that will become broken.

I had to test and retest that model a lot of times until I got it looking the way it did, also had to deal with a lot of problems such as uv mapping being stretched when it wasn't and then rebuilding sections since the export + import plugins are not made the same way as r* did it and are not perfect.

to redo the whole of gta sa with that technique would take a very long time, also not all the buildings are architecturally correct, some doors are too small to walk through and more editing of the mesh would be needed