Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
1 2 3 4 5 … 8 Next »
E2 Function: gravity()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
E2 Function: gravity()
09-09-2018, 02:55 AM,
#1
iNoPeRaTiVe Offline
TSCM Member
***
Posts: 6
Threads: 3
Joined: Jan 2017
Question  E2 Function: gravity()
I believe that gravity() is a function that Person added in from Stargazer? As it returns a value of "600," but where does it measure gravity from? If I move the E2 chip to space it still returns as "600".

Thanks for reading, please help.
Find
Reply
09-09-2018, 03:17 AM,
#2
mariofludd Offline
Novaaaaaaaaaaaaa
****
Posts: 528
Threads: 44
Joined: Dec 2013
RE: E2 Function: gravity()
I believe its a normal e2 function, not sure though, but the e2 is reading what the server has sv_gravity set to (which gmod default is 600 i believe)

[Image: efN9HsZ.png]
Find
Reply
09-09-2018, 03:26 AM,
#3
iNoPeRaTiVe Offline
TSCM Member
***
Posts: 6
Threads: 3
Joined: Jan 2017
RE: E2 Function: gravity()
Oh, okay, nevermind then, is there a way to read the gravity of an entity using E2? I'm making something that needs to detect whether or not it's in gravity.
Find
Reply
09-09-2018, 11:42 AM,
#4
mariofludd Offline
Novaaaaaaaaaaaaa
****
Posts: 528
Threads: 44
Joined: Dec 2013
RE: E2 Function: gravity()
No clue, sorry :/

[Image: efN9HsZ.png]
Find
Reply
09-09-2018, 12:57 PM,
#5
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: E2 Function: gravity()
Starfall has a function Entity:getEnvironmentData(), the table it returns contains a number "gravity". If you're lucky, person added this for E2 too, otherwise you have to write a starfall gate.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.