ID:141603
 
Code:
turf
Passages
Gym_Enter
Entered(mob/M)
spawn(1)
sleep(6)
M.PK = 1
M.loc=locate(23,141,9)
Exited(mob/M)
M.loc=locate(M.x,M.y,M.z)
Gym_Exit
Entered(mob/M)
spawn(1)
sleep(6)
M.PK = 0
M.loc=locate(43,128,1)
Exited(mob/M)
M.loc=locate(M.x,M.y,M.z)


Problem description:

When I shoot one of my beams at the passage it deleted the world and log everyone out can anyone help me on this on how to prevent it please.
I've tried to figure it out I made all the passages area's and then turf's again but no luck I tried if(istype(a,/obj/Beam)) but it didn't work.
Gizhy wrote:
Code:
> turf
> Passages
> Gym_Enter
> Entered(mob/M)
> spawn(1)
> sleep(6)
> if(istype(M,/mob))M.PK = 1 //Check to see if it is a player before you go changing variables
> M.loc=locate(23,141,9)
> Exited(mob/M)
> M.loc=locate(M.x,M.y,M.z)
> Gym_Exit
> Entered(mob/M)
> spawn(1)
> sleep(6)
> if(istype(M,/mob))M.PK = 0 //Otherwise you will try setting a non existant variable and BYOND doesn't like that.
> M.loc=locate(43,128,1)
> Exited(mob/M)
> M.loc=locate(M.x,M.y,M.z)
>

Problem description:

When I shoot one of my beams at the passage it deleted the world and log everyone out can anyone help me on this on how to prevent it please.
I've tried to figure it out I made all the passages area's and then turf's again but no luck I tried if(istype(a,/obj/Beam)) but it didn't work.
In response to AJX
Well thanks a lot, it's usually simple things I can't figure out...lol