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 / scancodekeypressed problem

Author
Message
force master
17
Years of Service
User Offline
Joined: 21st Sep 2007
Location:
Posted: 22nd Sep 2007 09:55
I am working on this script, but I have a slight problem



Now if this loops or if I want to add extra questions I am no longer able to use 1 2 3 on my number pad as this information is staying alive in the script.

So on the next loop instead of waiting for me to press 1, 2, 3 it automtically runs through with remembering that I entered that data earlier.


So is there anyway, that I can say after each STATE that scancodekeypressed=none

that wouldn't be the code, as I have tried.

Any ideas guys would be appreciated
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 22nd Sep 2007 17:45
I've attached two scripts by the Master "Conjured Entertainment". They will show you the way to accomplish this and more. One is "On Key Press" and the other is "While Key Press". Looking at your script, I think ehat changes you need to make will be apparant.

Best.

Quote: "; Script by: Conjured Entertainment
; Edited by: Inverted Entertainment
; re-edited by: Conjured Entertainment

desc = Display objectives if F key pressed
;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore/huds/objectives.tga,hudname=objectives,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=33:hudshow=objectives,state=2
:state=2,scancodekeypressed=0:state=3
:state=3,scancodekeypressed=33:hudunshow=objectives,state=4
:state=4,scancodekeypressed=0:state=1

;End of Script



2. ********** While key press **********


;Objectives on Screen Script
; Script by: Silent Thunder
; Edited by Conjured Entertainment

desc = Display Objectives while F key preesd
;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore/huds/objectives.tga,hudname=objectives,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=33:state=2
:state=1:hudunshow=objectives
:state=2:hudshow=objectives,state=1

;End of Script
"


I'm sorry, my answers are limited. You must ask the right question.

Login to post a reply

Server time is: 2024-11-23 23:45:37
Your offset time is: 2024-11-23 23:45:37