PDA

View Full Version : Light Effects


ownerofbabylon
07-28-2001, 11:17 PM
For anyone who doesnt know how to do light effects I learned so I hope any of you who need it read this.

if(playerenters){
setimg light2.png;
setcoloreffect 1,1,1,.5;
}

It is really simple but I did not know. Just put that inside of a NPC and put it somwhere and it does a light effect. Play around with the numbers and it gives it a different look.

omni-m00gle
07-29-2001, 12:24 AM
if (playerenters) {
setcoloreffect 0,0,0,0;
setzoomeffect 0;
}

put that inside the script of an NPC with the image as light2.png.

ownerofbabylon
07-29-2001, 04:23 AM
whats the difference?

LiquidIce00
07-29-2001, 04:38 AM
you might want drawaslight also

ownerofbabylon
07-29-2001, 04:41 AM
I have never even heard of that command =\

07-29-2001, 04:52 AM
. . . .

Brady2
07-29-2001, 06:36 AM
Jadis:

wtf man wtf


//#CLIENTSIDE
if (created) {
setcoloreffect 1,1,1,.99;
drawaslight;
dontblock;
}

ownerofbabylon
07-29-2001, 06:49 AM
Why you getting so angry?? On one post you say dont flame you for somthing and then you come on here and start freaking out. I was just trying to show anyone who didnt know how to do light effects how to do it cuz someome taught me.

Brady2
07-29-2001, 07:10 AM
Jadis:

..? I was not angry..

LiquidIce00
07-29-2001, 09:06 AM
Originally posted by Brady2
Jadis:

wtf man wtf


//#CLIENTSIDE
if (created) {
setcoloreffect 1,1,1,.99;
drawaslight;
dontblock;
}


no thats wrong..
you need if (playerenters) else after a bit you see the black circles. common mistake =\

ownerofbabylon
07-30-2001, 02:06 AM
Originally posted by Brady2
Jadis:

..? I was not angry..

oh ok, its just usually when someone says wtf i jump to the conclusion they might be mad or somthing ;)

Poogle
07-30-2001, 02:50 AM
I OWN JO THERE! THIS IS 1000000000% CORRECT!
------SCRIPT------
Red
if (playerenters) {
setcoloreffect 1,0,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Blue
if (playerenters) {
setcoloreffect 0,0,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Green
if (playerenters) {
setcoloreffect 0,1,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Cyan
if (playerenters) {
setcoloreffect 0,1,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Goldif (playerenters) {
setcoloreffect 1,1,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Violet
if (playerenters) {
setcoloreffect 1,0,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

General
07-30-2001, 03:07 AM
:( :( :( :( :( :(

Falcor
07-30-2001, 08:04 AM
No one could see any of it onine w/o the //#CLIENTSIDE comment =\

Poogle
07-31-2001, 05:36 AM
Originally posted by Falcor
No one could see any of it onine w/o the //#CLIENTSIDE comment =\ No CLIENTSIDE needed! TeSt iT!

SkooL
07-31-2001, 01:40 PM
Originally posted by Poogle
No CLIENTSIDE needed! TeSt iT! He said online...

SkooL
07-31-2001, 01:41 PM
Originally posted by LiquidIce00
you might want drawaslight also Only if you are using seteffect in the level with the light. ;)

NeoNPL
07-31-2001, 04:50 PM
But no one helped me with what i was stuck on in lighting effects :(
how do you do those wicked door lighting effects and the ones that cut around the corner :( :( :( :(:( :(:(:(:(

SkooL
07-31-2001, 04:52 PM
Originally posted by NeoNPL
But no one helped me with what i was stuck on in lighting effects :(
how do you do those wicked door lighting effects and the ones that cut around the corner :( :( :( :(:( :(:(:(:( It uses setgifpart.

Brady2
07-31-2001, 11:39 PM
Jadis:

IE: top left corner would be...


if (playerenters||created) {
setgifpart light2.png,64,64,64,64;
setcoloreffect 1,1,1,.99;
drawaslight;
dontblock;
}


Anyway I think the light2.png is 128x128 pixels

wetferret1
08-03-2001, 04:18 PM
SO WHAT THE HELL IS THE COMMAND!?!?!?

08-04-2001, 05:35 AM
Originally posted by wetferret1
SO WHAT THE HELL IS THE COMMAND!?!?!?

Please stop posting and die :(

revalation
08-04-2001, 09:10 AM
I wish I could see light effects.

mystic_pheonix
08-07-2001, 10:21 PM
if (created) {
setimg light2.png;
dontblock;
timeout = 0.05;
}
if (timeout) {
setcoloreffect random(0,99),random(0,99),random(0,99),random (0,99);
timeout = 0.05;
}

Poogle
08-07-2001, 10:47 PM
Originally posted by revalation
I wish I could see light effects. Get DirectX 8.0 and IcePick you tell him!