diff options
Diffstat (limited to 'npc/functions/ghost.txt')
-rw-r--r-- | npc/functions/ghost.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/ghost.txt b/npc/functions/ghost.txt index 1325525b..3e1a9724 100644 --- a/npc/functions/ghost.txt +++ b/npc/functions/ghost.txt @@ -13,8 +13,8 @@ function script SpawnGhost { return; L_Spawn: - .@x = POS_X; - .@y = POS_Y; + .@x = getx(); + .@y = gety(); if (!(iscollision(getmapname(), .@x, .@y - 1))) set .@y, .@y - 1; // up else if (!(iscollision(getmapname(), .@x, .@y + 1))) set .@y, .@y + 1; // down |