Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
613 B
12 lines
613 B
Scriptname _00E_PlayerhousingCurrentOTranslation extends ReferenceAlias
|
|
|
|
GlobalVariable Property continueTranslateToPlayerLoop Auto
|
|
|
|
Event onLoad()
|
|
;loop needs to be extracted from the rest of the code due to performance reasons (don't know why exactely, but defining new functions slows this down dramatically)
|
|
Actor player = Game.getPlayer()
|
|
while continueTranslateToPlayerLoop.getValue()
|
|
getRef().TranslateTo(player.getPositionX() + 100 * Math.sin(player.getAngleZ()), player.getPositionY() + 100 * Math.cos(player.getAngleZ()), player.getPositionZ(), 0, 0, player.getAngleZ(), 5000)
|
|
Endwhile
|
|
Endevent
|
|
|
|
|