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 Product Chat / using mouse instead of keyboard keys..

Author
Message
Killj0y17
13
Years of Service
User Offline
Joined: 15th Sep 2012
Location: In a pineapple, under the sea
Posted: 9th Nov 2012 15:42
Doors in fps creator are opened with the "enter key" , however what I want to achieve is to open doors with the left-mouse click. How do I do this? (because in my game, there is a lot of doors, and I wouldn't want the player moving his hand for the enter key just to open a door..)

BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 9th Nov 2012 15:57 Edited at: 9th Nov 2012 16:29
This should be in the script section, since it is the script that achieves this.

In your script you can replace the "plrusingaction=x", "scancodekypressed=x", or "keypressed=x y" with either of the following:

"mouseclick=x" - returns true if the corresponding button has been pressed.

X=1- left button; 2=right button; 3=both left and right

---

"mousestate=x" - is true if a specified combination of mouse buttons are pressed and x equals the sum of the button codes, or no mouse button is pressed and x=0.

X= mouse state codes (0=no buttons pressed; 1=left button pressed; 2=right button pressed; 3=left and right pressed; 4=middle pressed)


**Note** "mousestate=x" introduced in v1.18; "mouseclick=x" introduced in v1.19


There's no problem that can't be solved without applying a little scripting.
Killj0y17
13
Years of Service
User Offline
Joined: 15th Sep 2012
Location: In a pineapple, under the sea
Posted: 9th Nov 2012 16:29
Quote: "This should be in the script section, since it is the script that achieves this."

sorry I thought for sure that it has something to do with settings.

aannd it worked! all i did is i replaced the plrusingaction=1 in the dooruse.fpi to mouseclick=1
Thanks for the help!

BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 9th Nov 2012 16:30
You are welcome


There's no problem that can't be solved without applying a little scripting.

Login to post a reply

Server time is: 2026-07-03 23:46:50
Your offset time is: 2026-07-03 23:46:50