Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: GetSpeed() not working?
Post: RE: GetSpeed() not working?
No sorry, but it's basically just the speedCheck function above called in the movement hook |
|
G3bE |
Plugin Discussion
|
12 |
10,924 |
09-21-2018, 06:21 AM |
|
|
Thread: GetSpeed() not working?
Post: RE: GetSpeed() not working?
NiLSPACE Wrote: (09-14-2018, 12:41 AM)
--
But what does it return?
--
It returns a 0, but in a more advanced code like my first answer says it gives me an error. |
|
G3bE |
Plugin Discussion
|
12 |
10,924 |
09-14-2018, 02:03 AM |
|
|
Thread: GetSpeed() not working?
Post: RE: GetSpeed() not working?
NiLSPACE Wrote: (09-10-2018, 10:13 PM)
--
Sorry, I completely forgot to respond back. Next time you can bump the thread when nobody responds.
Does cPlayer:GetSpeed() work? I believe we had a chang... |
|
G3bE |
Plugin Discussion
|
12 |
10,924 |
09-13-2018, 07:27 PM |
|
|
Thread: GetSpeed() not working?
Post: RE: GetSpeed() not working?
Since nobody is answering me, I decided to make an extra class for the GetSpeed() function that stores the current position and the position a second ago. So, for everyone having the same problem as m... |
|
G3bE |
Plugin Discussion
|
12 |
10,924 |
09-10-2018, 06:33 AM |
|
|
Thread: GetSpeed() not working?
Post: RE: GetSpeed() not working?
NiLSPACE Wrote: (08-20-2018, 04:41 AM)
--
Does it send 'nil' values or the actual number 0?
--
In the code above it's sending me the number 0, but in this code (yes, it is an anti cheat and I know t... |
|
G3bE |
Plugin Discussion
|
12 |
10,924 |
08-20-2018, 07:06 AM |
|
|
Thread: GetSpeed() not working?
Post: RE: GetSpeed() not working?
Link to the hook: https://api.cuberite.org/Writing-a-Cuberite-plugin.html |
|
G3bE |
Plugin Discussion
|
12 |
10,924 |
08-20-2018, 01:44 AM |
|
|
Thread: GetSpeed() not working?
Post: GetSpeed() not working?
I tried to print out the users speed with both GetSpeed().x/y/z and GetSpeedX/Y/Z() and it just send me nulls. Is there anything I should know for using this function? :huh: Here is my onPlayerMoving(... |
|
G3bE |
Plugin Discussion
|
12 |
10,924 |
08-20-2018, 01:43 AM |