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 / Disable ESC IF PLAYER IN TRRIGER ZONE

Author
Message
abdullh
7
Years of Service
User Offline
Joined: 30th Aug 2012
Location:
Posted: 17th Jan 2014 19:19
HI
I tried more than 10 times and nothing happened

if player in trigger zone the ESC button will be disable
i read Unofficial FPSC Complete Script Syntax List in page 145

Example::keypressed=46 1:state=1

so i change keypressed 46 to 1

the result will be like this



i build simple map and i tried but doesn't work

can anyone please see this script and tell me if this doesn't work with you.
Corno_1
8
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 17th Jan 2014 23:28
This script can not work. First you must read
Example::keypressed=46 1:state=1
as this
; do not forget the : in front of the line
:keypressed=46 1:state=1

And keypressed=46 1 is a condition which check if 46 key is pressed or keypressed=46 0 which check if 46 is not pressed.

For your problem:

Make a variable which you set to 1 if you are in the triggerzone, and to 0 if you are outside of the triggerzone.

then you go to Files\languagebank\english\gamebank\mygame\setuplevel.fpi and then search this line:


and replace it with:


Corno_1

Games make the world better
Teabone
Valued Member
13
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 18th Jan 2014 00:25
Doesn't the ESC key override all commands though?

(Teabone)
abdullh
7
Years of Service
User Offline
Joined: 30th Aug 2012
Location:
Posted: 18th Jan 2014 05:21
Thanks @corno_1
i will try if i'm back to my room to test this script.
the main reason why i do this, cause do you remember last post about if monster appear the doors will locked, i found another problem
after monster appear.
while monster move his hand trying to hit me,the player will press ESC (PUSH)and after he press again to continue the monster will be freeze.

this is what i found from players in youtube, and really this is big bugs i ever seen.

anyway i will try and give you result, thanks

Login to post a reply

Server time is: 2019-09-20 07:37:51
Your offset time is: 2019-09-20 07:37:51