mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-07-15 00:08:31 -04:00
Only sideeffect: if you travel to fast and hit a wall or something solid, your char will disappear and reappear when the server is finished processing the transistion from a to b. Thats how it works in core3.
16 lines
387 B
Python
16 lines
387 B
Python
import sys
|
|
from resources.player import AccessLevel
|
|
|
|
def execute(objManager, player, target, args):
|
|
ghost = player.getCreatureObject()
|
|
|
|
if player.getAccessLevel() == AccessLevel.PLAYER:
|
|
print("Error: Your Accesslevel is to low to use that command")
|
|
return
|
|
|
|
if ghost is None:
|
|
print("Error: No Player or CreatureObject")
|
|
return
|
|
|
|
ghost.setMovementScale(float(args))
|
|
return |