Scripts / Disable mouse entirely?

Author
Message
Slaur3n
GameGuru TGC Backer
16
Years of Service
User Offline
Joined: 16th Sep 2008
Location: Norway
Posted: 27th Jul 2017 14:23
Hello
Is there a script where i can disable the mouse completly? No movement or clicking?

I tried this


But get a error message.
Visit our FB site and like
https://www.facebook.com/crowhillstudiosofficial
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th Jul 2017 20:21 Edited at: 27th Jul 2017 20:22
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Slaur3n
GameGuru TGC Backer
16
Years of Service
User Offline
Joined: 16th Sep 2008
Location: Norway
Posted: 27th Jul 2017 23:24
That didnt work smallg. Didnt get any error message this time, but mouse still works.
Visit our FB site and like
https://www.facebook.com/crowhillstudiosofficial
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 28th Jul 2017 11:50
IIRC DeactivateMouse only works in first person, in third person the camera is controlled by the mouse, it's probably embedded in the player control script somewhere. I keep meaning to rewrite that script but never seem to get around to it, I need to figure out how much of the player control logic is still in the engine (for example the bit that detects that the player is below the terrain is still hard coded in the engine and it keeps getting n my way!).
Been there, done that, got all the T-Shirts!
PM
Slaur3n
GameGuru TGC Backer
16
Years of Service
User Offline
Joined: 16th Sep 2008
Location: Norway
Posted: 28th Jul 2017 12:02
I tried this script i found in a another post:


This worked well in both 1st and 3rd person. I hope you or somebody else manage to figure out how to deactivate the mouse completly for the 3rd person, its crucial for making 2,5d platformers.
Visit our FB site and like
https://www.facebook.com/crowhillstudiosofficial
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 28th Jul 2017 18:33
ok so it's the other way around?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Slaur3n
GameGuru TGC Backer
16
Years of Service
User Offline
Joined: 16th Sep 2008
Location: Norway
Posted: 28th Jul 2017 19:46
Quote: "ok so it's the other way around?
"


I dont know why that should be, but it worked!!! Although i can still click the left and right button on the mouse. When i hold down the right button and walk my character begins to dance. I have to figure out what that is haha

Thanks smallg!
Visit our FB site and like
https://www.facebook.com/crowhillstudiosofficial

Login to post a reply

Server time is: 2024-12-23 00:10:02
Your offset time is: 2024-12-23 00:10:02