Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Dynamic light script

Author
Message
filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 13th Sep 2006 06:06
Hey ppl,

I have put all light markers only as 'dynamic entities' throughout my level to speed up the build time (and hopefully increase the fps during run time)

But I was not satisfied with the default light1.fpi script which was

Quote: ":state=0:state=1
:state=1,activated=0:state=2,lighton
:state=2,activated=1:state=1,lightoff"


For some reason, the lights remained off...and switched on only when I was awefully close to the light (maybe 8-9 ingame blocks)

So in some corridors (around 10 ingame blocks long), I can actually see the light switching on and off as I take a step forward or backward

So instead, I made this script to help me out and I renamed this script as light1.fpi so that all my lights would follow this main script:


Quote: ":state=0:state=1
:state=1,plrdistwithin=1500:state=2,lighton
:state=2,plrdistfurther=1501:state=1,lightoff"


But for some unknown reason, the lights still switch on at the same distance (around 8-9 ingame blocks)


I dont know what I am doing wrong here.

Can someone help me out please? thank you

-- n00b at playing games...and now at making em too :p --
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 13th Sep 2006 12:49
You do know that you can use light switches to switch your lights off and on,right?

filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 13th Sep 2006 19:37
Quote: "You do know that you can use light switches to switch your lights off and on,right?"


lol ya Fred

But this was an attempt to :
1. Improve fps by having only a few lights on at any given time
2. Increase the build time (since now I can rely only on dynamic lighting)

So basically, I only wanted those lights on which were either in my field of view (that wud be a lil complicated I guess) or within 15 ingame blocks away from me.

-- n00b at playing games...and now at making em too :p --

Login to post a reply

Server time is: 2024-11-22 23:59:11
Your offset time is: 2024-11-22 23:59:11