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 / [Help] Using A Variable to Affect Lights

Author
Message
DoubleRThree
13
Years of Service
User Offline
Joined: 29th Sep 2011
Location: UK
Posted: 15th Jan 2012 03:34 Edited at: 15th Jan 2012 03:37
Hello All,

In the game i'm currently creating, I'm attempting to create a "Demented Vision" effect, similar to that seen in Dead Space. What I am trying to do is change the light range during the process. For whatever reason, it isn't working. The idea I had uses a variable. The scripts using the variable are posted below.

Set Up Variable



Script For Lights



Script Changing The Variable




If anyone knows where I'm going wrong, or can tinker with it, or can point out how I would get it working, the help would be appreciated.

P.S. I'd be willing to post a tutorial on how to set up a "Demented Vision", though only AFTER the game is finished.

RR3.
DoubleRThree
13
Years of Service
User Offline
Joined: 29th Sep 2011
Location: UK
Posted: 15th Jan 2012 03:39
*NOTE TO MODS*

Can I get this moved to the scripts board, please?
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 15th Jan 2012 03:42
@DoubleRThree
lol, I was thinking that too, anyway, I've taken a look at the script and I am unsure how it is supposed to be set up so I am unable to test the problem and attempt to fix it.

-TZK

YoYo Games Account
Predator drone for FPSC - Coming soon, maybe
DoubleRThree
13
Years of Service
User Offline
Joined: 29th Sep 2011
Location: UK
Posted: 15th Jan 2012 03:45 Edited at: 15th Jan 2012 03:46
@TZK

[Script 1] The Variable Set-Up is placed in a Trigger-Zone.

[Script 2] The Lights Toggle is placed in all the lights I want to be affected.

[Script 3] The Vision Set-Up is placed in a Trigger-Zone that the player walks into.
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 15th Jan 2012 03:56
@DoubleRThree

I'm unsure why it's not working for you then, it works fine for me. If it helps I was using a dynamic light, not a static one.

-TZK

YoYo Games Account
Predator drone for FPSC - Coming soon, maybe
DoubleRThree
13
Years of Service
User Offline
Joined: 29th Sep 2011
Location: UK
Posted: 15th Jan 2012 03:57 Edited at: 15th Jan 2012 04:06
@TZK

Lights are set to dynamic.

I'll try clearing .bin and .dbo files, that sometimes fixes stupidly small errors.

EDIT: Still Not Working, Hmm.

Login to post a reply

Server time is: 2024-11-24 01:40:04
Your offset time is: 2024-11-24 01:40:04