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 / Need help with script

Author
Message
Light Samus
16
Years of Service
User Offline
Joined: 6th Mar 2008
Location:
Posted: 28th Mar 2008 14:17
I recently attempted to design a script in which when a player enters a trigger zone, gravity is turned off and when the player exits the zone, gravity returns. Unfortunately, I was unable to script this successfully. Below is my attempted script. I would very much appreciate it if someone told me what I am doing wrong.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 28th Mar 2008 15:20
Light Samus,

The nogravity command works only on entities, not the player. I don't think we have control over the player/camera to do what you want to do. Perhaps in one of the recent MOD's.

Best.

castek
17
Years of Service
User Offline
Joined: 15th Aug 2007
Location: Right behind you!
Posted: 28th Mar 2008 18:59 Edited at: 28th Mar 2008 19:01
also your script would not work because there is no state 0, you need to change state=1 to state=0 and state=2 to state=1.

"The Beginning is the end."
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Mar 2008 21:08
The no gravity command will only apply to the entities whom have a script running the command. It won't change gravity for ALL entities like you are assuming. You would need to have a piece of code in each entity's script that would be able to be activated and have THAT turn each eneity's gravity off, but that'd be time consuming, not to mention having to activate all of them.


The one and only,
~PlystirE~

Login to post a reply

Server time is: 2024-11-24 05:38:41
Your offset time is: 2024-11-24 05:38:41