obj/Web
icon = 'Effects.dmi'
icon_state = "web"
density = 1
var/mob/O
Bump(O)
if(istype(O,/mob))
O.locked = 1
sleep(50)
O.locked = 0
I keep on bettering O.locked as a bad var.
This is a web that flies though the air (that part works)
and when it bumps into you, you get stuck temporarily (that works, I found that out when using "usr" instead of "O" and it locked me in place)
but try this:
obj/Web
icon = 'Effects.dmi'
icon_state = "web"
density = 1
Bump(mob/O)
if(ismob(O))
O.locked = 1
sleep(50)
O.locked = 0
mob
var/locked