How to get gravity?
#1

Hello,

Is there a function or something to get the gravity?
As im making a /setgravity command and if player tries to set gravity and the gravity is already that level or w/e it returns msg?
Reply
#2

I don't see nothing like that on the Wiki, but I don't see the point of having that.
It's not like you save memory or anything by doing that.
Reply
#3

SetGravity(0.00;

under ongamemodeinit()

0.008 is normal gravity

easiest thing to do is to set it with a variable
Reply
#4

Hmmm, only way I could think to do it is create a float.

new float:Gravity;

When user uses /setgravity [amount] make Gravity = amount or something similar but also run the check if(amount = Gravity) or something. It's the only way I can think to do it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)