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
Venom Fox Offline
Junior Member

Posts: 32
Threads: 9
Joined: Mar 2016
Reputation: 0
#6
RE: Gravity

(08-03-2016, 04:59 PM)Romulator Wrote:
(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

Yeah, the script is working. I went through most of SOMA's hps files in codelite searching if they included any information, but found nothing. I doubt that there's a code that would automatically default the gravity, too bad.
08-03-2016, 05:58 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)