turf
Portal
One
icon = 'Portals.dmi'
icon_state = "1"
Enter(mob/M)
usr.loc = locate(7,2,2)
////
mob
verb
Fireballskill()
var/obj/Fireball/S=new(src.loc)
S.dir = src.dir
walk(S,src.dir)
obj
Fireball
icon = 'fireball.dmi'
icon_state = "small"
Bump(mob/M)
if(istype(M))
S = new(loc)
S.icon = 'fireball_hit.dmi'
src << "Hit"
del S
else
sleep(50)
del S
var/obj/Fireball/S
Problem description:
When the projectile hits a "portal" turf which relocates the mob, it doesnt go in, or delete on impact, it just sends a runtime error.
runtime error: Cannot modify null.loc.
proc name: Enter (/turf/Portal/One/Enter)
source file: turf,skin,npc.dm,96
usr: 0
src: One (9,43,1) (/turf/Portal/One)
call stack:
One (9,43,1) (/turf/Portal/One): Enter(Fireball (/obj/Fireball))
Edit: Megelic that didn't help or make sense no offense. You only restated what I said in a different way and caused the chance of someone coming to actually help me be less likeley because you posted....sorry!
Pretty sure what's entering is a obj, that may be your problem.