Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
DooMBoy

Using ZDoomHexen specials in scripts

Recommended Posts

How exactly do I do this? Like say for instance I want a script to run at the beginning that will make the water in map01 bright blue? How would I do that?

Share this post


Link to post

you mean like this?

script 1 OPEN
{
	Sector_SetColor (1, 0, 0, 220);
}
Replacing (void) with OPEN will cause the script to run as soon as the map is started.

Share this post


Link to post

to clarify that a bit for you here is a breakdown of Epyo's script

script 1 OPEN
{
Sector_SetColor (1, 0, 0, 220);
}

OPEN means run at map start
(VOID) means not till activated basicly

(1, 0, 0, 220)

1 is the sector tag #

0, 0, 220 is the rrr, ggg, bbb hex colors

if this is for zdoom and wadauthor i recomend taking alook at Ricks tutorials located here

http://zdoom.notgod.com/zdkb/zdoomindex.html

Share this post


Link to post
DooMBoy said:

How exactly do I do this? Like say for instance I want a script to run at the beginning that will make the water in map01 bright blue? How would I do that?

Scripts are a powerful way of implementing both ZDooM-Hexen and regular DooM actions. However, I've found that it's simpler to use linedefs to trigger single actions and scripts to activate multiple actions. (Unless of course you want a special to be active as soon as the map starts -- in that case an open script is warranted.)

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
×