Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gravity
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#5
RE: Gravity

(08-03-2016, 03:05 PM)Venom Fox Wrote: Hey, so I wanted to create a room that has low gravity, I used this for it:

Player_SetGravity(-0.45f);

Now I don't know if that's the best code to use if I want to get low gravity, but it works (kind of) except for one little issue where the character is slowly moving to some direction, but it's not the main problem.

The main problem is that I can't set the gravity back to normal. I've tried so many things, i.e Player_SetGravity(1.0f); or Player_SetGravity(-1.0f); or even Player_ChangeStateToNormal();

None of them works, any ideas...? :S

Have you got any other events occurring when Gravity resets so you can confirm the script is actually working? If you can make use of Debug Messages, I really recommend it.

(08-03-2016, 03:53 PM)Darkfire Wrote: So if anything else fails, try my script. It works and looks quite good.

And while it does work, we're working with SOMA here, not Amnesia Wink

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 08-03-2016, 05:00 PM by Romulator.)
08-03-2016, 04:59 PM
Find


Messages In This Thread
Gravity - by Venom Fox - 08-03-2016, 03:05 PM
RE: Gravity - by Darkfire - 08-03-2016, 03:20 PM
RE: Gravity - by Venom Fox - 08-03-2016, 03:47 PM
RE: Gravity - by Darkfire - 08-03-2016, 03:53 PM
RE: Gravity - by Romulator - 08-03-2016, 04:59 PM
RE: Gravity - by Venom Fox - 08-03-2016, 05:58 PM
RE: Gravity - by MrBehemoth - 08-03-2016, 06:34 PM
RE: Gravity - by Venom Fox - 08-03-2016, 06:38 PM
RE: Gravity - by Darkfire - 08-03-2016, 08:58 PM



Users browsing this thread: 1 Guest(s)