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 / Timer issues

Author
Message
peasoup
12
Years of Service
User Offline
Joined: 4th Oct 2012
Location:
Posted: 5th Oct 2012 03:57
Disclaimer: I'm brand new to this and potentially stupid. Anyway, I've managed to get a lot of things to work so far, but I can't get my countdown to work.
Basically, I want the player to activate a console which will start a timer of 4 minutes before the place "explodes"/player dies.

So, what I'm doing is: I have no idea how to make the computer console "usable," so I set its script to dooruse. Then I set the Automated AI "if used" to a light that I named Trigger1. Trigger1 is where I linked the timer script to. So, what I'm hoping for is that the player "uses" the console, which activates the timer script via the light. Except, nothing happens after the console is used. I'm not sure if the issue is my method, or my script.



Can you help me out? I'm not finding answers in any of the guides.
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 5th Oct 2012 21:14
OK , first of all dooruse.fpi is only for doors as it have commands to animate the door on and off , and also it doesn't activate the entity in if used field . however , look in dooruse.fpi and you will find how to make things usable using plrdistwithin=x and plrusingaction=x . You can activate if used entity using command activateifused=1
and why would you use a light to activate your timer ? simply use a trigger zone and place your script in it . Your script has some issues as well . you need to add a condition to check if the player used the console and activated the trigger zone , that's using activated=1 condition in the first line . You also used state=2 in the 3rd line without directing the script to it in the 2nd line , so you should add state=2 to the end of the second line .
at last , read some scripting guides and try to write those scripts again . If you fail , You're always welcome to post back

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest

Login to post a reply

Server time is: 2024-11-23 19:39:52
Your offset time is: 2024-11-23 19:39:52