Posted by: VTULCobra - Sunday, December 11, 2011 2:49:31 AM
Hey guys, I'm working on a mission where you have to destroy a dam to get to the other side of the map, to the enemy base. But i need help with the scripting, the "change water over time" stuff and those scripts. Could anyone give me a little info on this one? Thanks

Posted by: NewNightmare - Sunday, December 11, 2011 4:01:32 AM
[url=http://www.cnclabs.com/maps/generals/worldbuilder/tutorials/making-a-dam.aspx]http://www.cnclabs.com/maps/generals/worldbuilder/tutorials/making-a-dam.aspx[/url]

Posted by: NewNightmare - Sunday, December 11, 2011 4:39:33 AM
if you want to add the bigass wave effect, you have to edit Gamedata.ini, and copy one of the chunks of already-exisiting waves, and set settings appropriately here's the code from China mission 3 [code] ;the following are for vertex animated water VertexWaterAvailableMaps2 = Maps\CHI03\CHI03.map VertexWaterHeightClampLow2 = 0.0 VertexWaterHeightClampHi2 = 31.2 VertexWaterAngle2 = -12 ;in degrees VertexWaterXPosition2 = 282.0 VertexWaterYPosition2 = -20.0 VertexWaterZPosition2 = 3.0 VertexWaterXGridCells2 = 100 VertexWaterYGridCells2 = 200 VertexWaterGridSize2 = 11.0 VertexWaterAttenuationA2 = 1.0 VertexWaterAttenuationB2 = 0.0 VertexWaterAttenuationC2 = 0.0 VertexWaterAttenuationRange2 = 20.0[/code] the '2' at the end is there because it's a second one in the file (notice there's not 'End's) If not added before, you should have 4 by default, so yours would be with 5s at the end. Note: This requires some waypoints in-game, can't remember which, open any mission in WB with destroyable dam and look for stand-alone waypoints near the dam I think I found it, WaveGuide1 its called in Chi03

Posted by: VTULCobra - Monday, December 12, 2011 1:01:53 AM
Yes I've seen and read that page you liked before, but it didn't work for me, maybe I did something wrong. Thanks for the code, is it one from the basic ZHINI put into a self-made INI in the map folder? Thanks

Posted by: NewNightmare - Wednesday, December 14, 2011 5:45:52 AM
[quote]is it one from the basic ZHINI put into a self-made INI in the map folder?[/quote] It's located in Gamedata.ini in INIZH.Big // INI.big and what you have to do is copy that piece of code over, add 1 to the number @ the end of each of the "VertexBlahX" codes, and put in the values, all in gamedata.ini

Posted by: VTULCobra - Wednesday, December 14, 2011 6:13:33 AM
Oh I see, thanks.