obj
Hook
var
celsium
length = 1
speed = 0.1
matrix/X
active = TRUE
icon = 'Objects.dmi'
icon_state="Hook"
New(/**/)
Moving(/**/)
..(/**/)
proc
Moving(/**/)
while(active)
if(active==FALSE)
break
for(var/celsium;celsium<40;celsium++)
if(active==FALSE)
break
X = new
X.Scale(1, length)
X.Translate(0, length/2)
X.Turn(celsium*2)
transform = X
sleep(speed)
for(var/celsium=-40;celsium<0;celsium++)
if(active==FALSE)
break
X = new
X.Scale(1, length)
X.Translate(0, length/2)
X.Turn(celsium*-2)
transform = X
sleep(speed)
for(var/celsium;celsium<40;celsium++)
if(active==FALSE)
break
X = new
X.Scale(1, length)
X.Translate(0, length/2)
X.Turn(celsium*-2)
transform = X
sleep(speed)
for(var/celsium=-40;celsium<0;celsium++)
if(active==FALSE)
break
X = new
X.Scale(1, length)
X.Translate(0, length/2)
X.Turn(celsium*2)
transform = X
sleep(speed)
sleep(1)
Grab(/**/)
X.Turn(celsium*2)
transform = X
sleep(6)
if(src)
active=TRUE
Moving(/**/)
mob
verb
Trigger(/**/)
for(var/obj/Hook/M in world)
M.active=FALSE
M.Grab(/**/)
I want to make same effect as on gold miner. But i dont know how should I make Grab() verb walk in celsium direction and than return. Also it would be able to bumb into minerals.