Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Doom_master1122

Either im tired and messed up some where or.....

Recommended Posts

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?

Share this post


Link to post

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.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post

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!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×