Skip to content

Commit 01cf39a

Browse files
committed
implementation of feature requested in #5
1 parent ca7e80f commit 01cf39a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

archfly.sk

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ command /enablefly:
2020
executable by: players
2121
trigger:
2222
if {flyable.%player%.flying} is not "flying":
23+
set y-coordinate of {flyable.location} to y-coordinate of player
2324
if distance between {flyable.location} and location of player is less than {flyable.range}:
2425
set {flyable.%player%.flying} to "flying"
2526
set {flyable.%player%.warned} to "notwarned"
@@ -51,6 +52,7 @@ command /warnstatus:
5152

5253
Every 30 seconds in "world":
5354
Loop all players:
55+
set y-coordinate of {flyable.location} to y-coordinate of loop-player
5456
if {flyable.%loop-player%.flying} is "flying":
5557
message "飛行可能区域中心からの距離:%distance between {flyable.location} and location of loop-player%" to loop-player
5658
if distance between {flyable.location} and location of loop-player is greater than {flyable.range}:

0 commit comments

Comments
 (0)