Log in

View Full Version : Check Location



brubruzera
06-11-2016, 05:37 PM
Anyone knows how i make an check location? I make and script and sometimes he bug on one door label, because of a lot of monsters, if someone have an .lua to check position and if is not on that position come back to one label i'll be very happy :)

Trykon
06-11-2016, 05:43 PM
Local x = 11111
Local y = 22222
Local z = 33333
If (labelName == "checkpos") then
If not(Self.Position().x == x and Self.Position().y == y and Self.Position().z ==z) then
gotoLabel("go for doors")
End
End

brubruzera
06-11-2016, 06:22 PM
Local x = 11111
Local y = 22222
Local z = 33333
If (labelName == "checkpos") then
If not(Self.Position().x == x and Self.Position().y == y and Self.Position().z ==z) then
gotoLabel("go for doors")
End
End

There some way to i put the "Local x,y,z" under the Tds? So i can put this Tds in my Setup :)

Trykon
06-11-2016, 08:17 PM
Unfortunately you beed to fill it yourself.