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 / Disableing the up down axis

Author
Message
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 19th Jun 2012 09:38 Edited at: 19th Jun 2012 22:10
Is there a command to disable the ability for the player to look up and down while still being able to look left and right? Any help would be great.
EDIT: I'm just looking for the command not the whole script.

Disturbing13
Dev Forum Store
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 23rd Jun 2012 02:24 Edited at: 23rd Jun 2012 02:24
Bump-If it's not possible just a 'not possible' from knowledgeable scripter would suffice. I just need to know if I should move on with a different solution.Thanks in advance!

Disturbing13
Dev Forum Store
geistschatten
12
Years of Service
User Offline
Joined: 10th Apr 2012
Location:
Posted: 23rd Jun 2012 05:16
http://forum.thegamecreators.com/?m=forum_view&t=195008

Maybe you could look at the player cam codes from this script pack, and come up with something? e.g. plrcamy=0
(That snippet won't work, just an example of what the code might look like.)
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 23rd Jun 2012 05:20
It is, but it's a bit shaky when you try to look along the Y axis. Normally I'd just direct you with some commands, but here's the script since it's really pretty simple.



Happy to help,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 630 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 24th Jun 2012 02:56
Thanks a million! I'll give this ago when I get home from work. I imagined it would be about that simple if the command existed, I just couldn't find any documentation on it.Thanks again!

Disturbing13
Dev Forum Store
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 24th Jun 2012 06:05
No problem. I love to help out the community.

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 630 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 24th Jun 2012 08:52
I can't seem to get it working. i tried a trigger zone using it and I tried attaching it to an object with no results.

Disturbing13
Dev Forum Store
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 24th Jun 2012 12:02 Edited at: 24th Jun 2012 12:04
@Disturbing 13
Yeah, that doesn't work, I tested this though and it works perfect:



-TZK

Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 24th Jun 2012 13:35
@The Zombie Killer- WOW thanks that rocked! That's exactly what I was wanting to do. I popped it into a trigger zone and it worked perfectly.If you need something I'm capable of like a model, don't hesitate to ask.

Disturbing13
Dev Forum Store
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 25th Jun 2012 00:43
That's weird. I just assigned it to a triggerzone and it worked. I was going to do exactly what TZK did, but it consumes a slight amount of resources more unless you do it the way I did. Oh well, not that it'd make a difference anyway.

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 630 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 25th Jun 2012 10:17
@Akanto10
Yeah, your script should've worked, it's just that it seems that $MMX and $MMY are broken in the latest version.

@Disturbing 13
No problem, but Akanto10 can have anything you were going to offer me, because he had the correct solution, it's just that those 2 variables are broken in the latest version of FPSC.

-TZK

Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 25th Jun 2012 12:49
How bout instead I fulfill a request for both of you. I 'll make a model of your choice for each of you. You were both helpful and generous and deserve generosity in return.

Disturbing13
Dev Forum Store
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 25th Jun 2012 16:59
No thanks, I appreciate your generosity, however.

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 630 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |

Login to post a reply

Server time is: 2024-11-24 00:35:35
Your offset time is: 2024-11-24 00:35:35