Files
Holocore/scripts/commands/generic/cmdSetSpeed.py
T
tacef 65c84797e5 Added SetSpeed command
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.
2015-02-23 18:20:45 +01:00

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