Doom_master1122 Posted July 6, 2007 im a newb at acs scripting. im trying for a script in doom builder where the player walks across a line and some events happen here is the acs script #include "zcommon.acs" script 1 (void) { Sector_SetFade(1,100,000,000); Delay(150); Sector_SetFade(1,000,000,000); Door_raise(2,32,64); } something wrong with it? some one help me here? 0 Share this post Link to post
exl Posted July 6, 2007 I assume you're trying to get the sector fading to work? Try something like Sector_SetFade(1, 255, 0, 0); It's tag, red value, green value, blue value. The colors range from 0 to 255. 0 Share this post Link to post
Steeveeo Posted July 6, 2007 for further reference, check zdoom.org/wiki/]here for any ACS needs. 0 Share this post Link to post
Enjay Posted July 6, 2007 Doom_master1122 said:something wrong with it? Not as far as I can see. I just copied and compiled your script and put it in a level and, as far as I can tell, it does exactly what you want: it makes sectors tagged #1 red, waits for 150 tics, kills the red colour and opens a door tagged #2 (which closes again). http://rapidshare.com/files/41437386/red.zip.html The red colour is a little pale in GZdoom, but it is definitely there and it is even more obvious in Zdoom. 0 Share this post Link to post
Doom_master1122 Posted July 6, 2007 Enjay said:Not as far as I can see. I just copied and compiled your script and put it in a level and, as far as I can tell, it does exactly what you want yeah everytime i use it i get this..... look in the upper left hand corner.. (i crossed the lines 3 times) i cant get a simple script to work. (and btw no that isnt the texture im using on the walls. i havent colored [lack of words] them yet) im using zdoom 2.1.7 0 Share this post Link to post
Doom_master1122 Posted July 7, 2007 Nvm people i got it working..... thanx for the help. i had to reinstall doombuilder cause i came up with some error before when i compiled the script. so i reinstalled it and it fixed... and the script works..... Thanx for looking and helping all! 0 Share this post Link to post