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 / Proximity lighting

Author
Message
Necrophear
16
Years of Service
User Offline
Joined: 14th Jan 2008
Location:
Posted: 30th Mar 2008 06:29
I know...
this feels like a request....bad me...
i wanted to know what could be used to make lights turn on when close to the player and turn off when the player was farther away.

;Artificial Intelligence Script

;Header

desc=Proximity Lighting

;Triggers

:state=0:state=1
:state=0,activated=0:lightoff
:state=0,activated=1:lighton,state=1
:state=1,plrdistwithin=25:state=2
:state=1,plrdistwithin???:state=2
:state=2:lightoff

;End of Script
Paul112
18
Years of Service
User Offline
Joined: 1st Jan 2006
Location: UK
Posted: 30th Mar 2008 21:08
The light will have to be dynamic...

;Artificial Intelligence Script

;Header

desc=Proximity Lighting

;Triggers

:state=0:state=1
:state=1,plrdistfurther=200:activated=0,lightoff
:state=1,plrdistwithin=200:activated=1,lighton

;End of Script

Works fine for me, you'll have to play with the distance values to get it working right for you, but the range of the light marker will show you the scale. I used 200, which is near enough 2 segments away I think.

Good luck,
Paul
Necrophear
16
Years of Service
User Offline
Joined: 14th Jan 2008
Location:
Posted: 30th Mar 2008 22:08 Edited at: 31st Mar 2008 00:03
oh my, so prompt.
thank you very much.
plrdistfuther... why didn't i remember that...
Gandalf the New
17
Years of Service
User Offline
Joined: 4th Sep 2007
Location:
Posted: 30th Mar 2008 22:18
i tried that script, it works and is very useful.

and lulz
Paul112
18
Years of Service
User Offline
Joined: 1st Jan 2006
Location: UK
Posted: 31st Mar 2008 12:13
Glad to be of service

Paul

Login to post a reply

Server time is: 2024-11-24 05:24:31
Your offset time is: 2024-11-24 05:24:31