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 / MouseClick in FPSC V117 ?

Author
Message
vilgil
15
Years of Service
User Offline
Joined: 7th Feb 2011
Location:
Posted: 21st Mar 2011 19:02
Hi

Is the MouseClick = 1 condition supported in V117 (without using any Mods).
Is there a alternative way to find out whether the player has shot ?

Thanks
Omegamer
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location: There
Posted: 23rd Mar 2011 15:47
I don´t know if there´s an alternative but the player could press 0 to put away his weapon and then press the left mousebutton and FPSC would think the player has shot.

Youtube Name: omegamer666
Current project: Junkys Home, a X9 project where you wakeup in a dark apertment and your goal is to get out of there.
But you´re not alone...
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 24th Mar 2011 02:08 Edited at: 24th Mar 2011 02:10
In version 1.18 there is a condition command called: mousestate=x

I am not sure how this works. However, I am guessing x will be 1 for left mouse button, 2 will be for right mouse button.

The problem will be that pressing the left button will always fire the gun for those of you who don't want the gun to fire.

So, I would guess this would be the script

:state=x,mousestate=1:actions here

Because this is a condition you could have,

:mousestate=1:actions

however, that might cause a real problem with fps or you may not want the actions to be fired everytime the player presses the left button. It should be associate with at least a state if not another condition.

Another issue is that I'm not sure if this will work with FPSC. It might work only with FPGC (without guns). All you can do is try it.

BTW FYI, this should have been in the "FPSC Scripts" forum.



Terry
rolfy
20
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 24th Mar 2011 02:22
Just tried mousestate=x and it works a treat, I feel another brain fart coming on
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 24th Mar 2011 02:34 Edited at: 24th Mar 2011 02:36
As long as it doesn't stink.

OH, KNXRB added this to the v118 code.



Terry

Login to post a reply

Server time is: 2026-06-28 07:54:27
Your offset time is: 2026-06-28 07:54:27