Jump to content

zdoom help


mechasam

Recommended Posts

aight, i know u all are gonna say go to zdoom editing help to get help but i did already and its not clear on certain things:

ok, i am using waded to make my lms2 levels and im also using wadauthor (zdoom configuration) to insert the ambient sounds. BUT... how do i make a sector that has colored lighting? like lets say i want an underwater effect, therefore, i will make that sector with low gravity and make it a blue sector.. i know the gravity part, how do i make the colored part using wadauthor?

Share this post


Link to post

You've to add this line to an open script:
Sector_SetColor([tag of sector], 0, 0, 255);
This will make the sector [tag of sector] blue. The newer versions of ZDooM support "real" swimming, you simply need to put a "water thing" into the sector.

Share this post


Link to post

ok i need the EXACT script to put in a lmp file. can u write the exact thing? lets say if i tag my sector... oh.. tagged 69

Share this post


Link to post

do i just make a new txt file called "scripts" and insert it in my wadfile then rename it to scripts.lmp?

so this is all i write in the scripts.lmp :

script 1 open { Sector_SetColor(69, 0, 0, 255); }


?

Share this post


Link to post

You are using WadAuthor, right? So when you're editing your level simply right-click at some empty place and select "Scripts..." from the pop-up menu. Write down the script, hit "compile" and there you go.

Share this post


Link to post

is this right:

/////////////////////////////////////////////////////////////
//
// Because a SCRIPTS resource was not found when the map
// was loaded, WadAuthor has decompiled the following code
// from the BEHAVIOR resource.
//
/////////////////////////////////////////////////////////////

#include "common.acs"

// BEHAVIOR contains 0 scripts referencing 0 strings

// Scripts:
script 1 open
{
Sector_SetColor(69, 0, 0, 255);
}
// Strings:

Share this post


Link to post

well that is good but keep that work like this ! all others information aren't needed! But If you is not the accustomed in scripting well add your comment with these //

#include "zcommon.acs"

script 1 open // open the script for setting the blue color
{
Sector_SetColor(69, 0, 0, 255); // blue color at sector tag 69
}

Share this post


Link to post
Guest
This topic is now closed to further replies.
×
×
  • Create New...