ID:165301
 
How do I make it so everyone in my surrounding would freeze, or slowdown.
here is how to freeze them,

mob/Move()
if(!locked)
return ..()

that will make it where if the var locked = 1 they cant move
mob/var/locked=0

thats the var
mob
gm
verb
Freeze_Unfreeze()
set category="Admin"
for(var/mob/M in view())
if(M.key!=usr.key && M.locked==0)
M.locked=1
usr<<"With a wave of your hand, you Freeze [M]!"
M<<"[usr] waves their hand, and [M] Freezes"
return
if(M.key!=usr.key && M.locked==1)
M.locked=0
usr<<"With a second wave of your hand, you UnFreeze [M]!"
M<<"[usr] waves their hand again, and [M] Un-Freezes"
return

ok that is how to freeze, edit at your own will, ummmmmm if you want to make it just a mob/verb not a mob/gm/verb just take out the gm and un-indent the coding once.
that would look like this:
mob
verb
Freeze_Unfreeze()
set category="Admin"
for(var/mob/M in view())
if(M.key!=usr.key && M.locked==0)
M.locked=1
usr<<"With a wave of your hand, you Freeze [M]!"
M<<"[usr] waves their hand, and [M] Freezes"
return
if(M.key!=usr.key && M.locked==1)
M.locked=0
usr<<"With a second wave of your hand, you UnFreeze [M]!"
M<<"[usr] waves their hand again, and [M] Un-Freezes"
return


I hope this helps you
~Volks