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 / mouse comand

Author
Message
nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 20th May 2010 00:37 Edited at: 20th May 2010 15:36
desc = Fenix Mod Flashlight

:state=0,mouseclick=0 1:makeflashlight,flashlightrange=500,state=3
:state=3,mouseclick=1 0:state=1
:state=1,mouseclick=1 1:flashlightoff,state=2
:state=2,mouseclick=1 0:state=4
:state=4,keypressed=33 1:flashlighton,state=5
:state=5,keypressed=33 0:state=1

is this correct?

Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 23rd May 2010 13:49
No, the mouseclick condition only has variable. Only one number allowed.

And what are you trying to do? Seems to me like to make it so that, you need to click, then press F to turn it on, then hold click again to turn it off.

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 23rd May 2010 15:00
I see a problem in using the mousebuttons since they are used to fire the weapon (or zooming it) the player carries

In case you find my grammar and spelling weird ---> native German speaker ^^
nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 23rd May 2010 18:13
how can i do it so that instead of key to use the mouse....???

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 23rd May 2010 18:55
I still dont know how you will avoid the player firing his weapon each time he clicks the left mousebutton to do something you scripted.

In case you find my grammar and spelling weird ---> native German speaker ^^
nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 23rd May 2010 19:04
in the particular scene he has no gun so i dont bother about this can you help me with this script?

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 23rd May 2010 19:34 Edited at: 23rd May 2010 19:36
If you want to make your flashlight working with mouse buttons the easiest way is to turn it into a gun, just like EAI did it with his LED light.

Of course that means that as long as the player has the flashlight he cant use another weapon.

In case you find my grammar and spelling weird ---> native German speaker ^^
nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 23rd May 2010 19:54
forget the first post i want for the second one....is there any way that instead of keypressed=17 to use mouseclick=1???

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 23rd May 2010 20:04
keypressed=x or scancodekeypressed=x both don't work for mouse, joystick or gamepads.

In case you find my grammar and spelling weird ---> native German speaker ^^
Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 23rd May 2010 20:09
Just replace the keypressed=17 1 with mouseclick=1. That simple.

Login to post a reply

Server time is: 2024-11-25 00:23:40
Your offset time is: 2024-11-25 00:23:40