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 / Restricting Players view

Author
Message
Avenging Eagle
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 14th Nov 2008 23:28
I've been scratching my head over this for a while now, so I thought I'd throw it out to the crowd to see what you all think.

Is it possible to restrict what the player to can? i.e. make it so he/she/it can only turn his/her/it's head a certain number of degrees. I don't want my player to look up or behind himself during a certain bit of a level.

I doubt standard fpi scripting would do this, perhaps plymod?

What do you think?

AE

Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 14th Nov 2008 23:57
I remember speaking with EAI about this for a mech he wanted to make.

Yeah, we couldn't come up with any way to do this with conventional scripting. But Ply's Mod comes with some commands to help with the problem.

If you used the mod, you could do the following:
- Capture the player camera's current angle ($CAX/Y/Z) into a usable variable
- Determine if these angles are higher than you need them to be (or lower than you need them to be), if they are then force the camera's angle back.

(The WrapVar command may or may not be helpful for this)


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.

Login to post a reply

Server time is: 2025-05-23 04:45:56
Your offset time is: 2025-05-23 04:45:56