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 / Multi activated?

Author
Message
FPSCStudent
12
Years of Service
User Offline
Joined: 29th Sep 2012
Location:
Posted: 29th Sep 2012 20:14
Hello?Is a student of FPS Creator script.I Koreans can not speak English well.Using Google translator, so try to post a question.So I can post more than Please understand.Activated in a script that you\'re, you know?I\'d like to use it several.It means the two switches must operate.Would like to open the door.Us how to do this knows anything, please write down the answers.Also attached a sample script would be very much appreciated.

Hello i'm korean
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 1st Oct 2012 03:31
Now THAT took me some time to understand I don't know if you'll understand my naswer but I'll write it anyways .
you want to activate 2 switches in order to open a door , right ? Simply use variable system . you want a door open when two switches are activated , so you make it so that each activation adds 1 to the var value , and once the value reaches 2 , door opens . I will write examples but you have to do the rest alone

Door script

:state=0:dimvar=door,setvar=door 0,state=1
:state=1,varequal=door 2:state=2

Switches scripts

:state=0,plrdistwithin=60,plrusingaction=1:addvar=door,state=1

Notes :
- dimvar=X creates a var with the name X
- plrusingaction=1 checks if the player is pressing the use button (Enter by default)
- plrdistwithin=X turns true if the player is within X units from the entity (The less , the closer)
- Download the Script Syntax List made by Ched80 HERE
- Learn English so you and the community understand each other

Peace

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
FPSCStudent
12
Years of Service
User Offline
Joined: 29th Sep 2012
Location:
Posted: 1st Oct 2012 05:04
Gratitude for your answers.

I really really appreciate it.

By your answer, the script has been studied.



Hello i'm korean

Login to post a reply

Server time is: 2024-11-23 20:09:40
Your offset time is: 2024-11-23 20:09:40