![]() |
Speed script help! This time I have the script =]
1 Attachment(s)
Ok, so I have this problem with my script. It makes the player default speed faster, or slower if you choose. This is the problem though, whenever I use it, it makes me faster, but it disables my weapons. This is a big problem because my server is going to be a gun server and I need my weapons to be enabled. So to be clear, the problem is that I cannot equipt weapons with this script.
Someone please help me Thanks -Jamerson |
PHP Code:
|
I deleted that, and it just like made me invisible. How can I fix this?
|
Do I do this?
enabledefmovement(); |
Uh, no. Use your previous script, and when the player presses D (that's the button to use weapons, right?) trigger onWeaponFired() on the selected weapon.
|
Is there like an easier way to just set the default speed of the player without the feature of my script?
Just like a this.speed = 0.6; Just a simple script that makes the player faster. |
Not yet, no.
Quote:
|
I dont mind making it 1. Like Stefan said "There is a player.defaultwalkspeed in the next Graal version although like some people said before you can't make the player faster than "1" (default is 0.5), for that you would need a custom walk system like on Era or Zone."
What is the player.defaultwalkspeed script? I dont care setting it to 1. |
Quote:
Anyways, I'd suggest you make a custom weapon system, that would do something like.. PHP Code:
Quote:
|
Quote:
Quote:
Quote:
|
Use the onKeyPressed() function to tell when the "D" key is pressed, then you need to trigger the weapon, as Chompy posted.
|
Someone close this.
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 08:19 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.