Log in

View Full Version : If cap <30 go to stand (x,y,z)



pepan161
03-24-2016, 09:38 AM
Hello I need script when cap <30 go to stand(33212, 23920, 6)

kamilqq
03-24-2016, 05:40 PM
make label before Stand, and the function you are looking for is:
Self.Cap() - it returns your cap, make simple if and there you go.

yompa93
04-07-2016, 09:27 AM
This should work, not sure though.

Just add a label named StandLabel before the stand or rename the label in the module. I just assumed you have a Start Label and made an example on what you need in the event listener



registerEventListener(WALKER_SELECTLABEL, "onLabel")
function onLabel(label)
if (label == "Start") then
GoToStandWhenCap = true
end
end




GoToStandWhenCap = true

Module.New('LowCap', function()
local Limit = (Self.cap() <= CapToMove)
if Limit then
GoToStandWhenCap = false
Walker.Goto("StandLabel")
end
end)