ID:1536144
 
(See the best response by Kaiochao.)
Code:


Problem description:I don't think you really need the code, so I'll just explain the problem. I have a obj projectile, and whenever it goes into a tile that has Entered() on it for players, it creates a bunch of runtime errors. I'm assuming it's because the Entered() edits variables for clients, and since it's an object entering it, it freaks out. How could I avoid this?

Make it so before any var is changed it checks if the atom is a mob.

turf/Entered(atom/A)
if(ismob(A))
..//the rest
In response to Eternal_Memories
usr isn't valid in Entered(), especially for projectiles.
In response to Kaiochao
Kaiochao wrote:
usr isn't valid in Entered(), especially for projectiles.

Well, he just has to replace the usr with whatever he defined the atom that enters
In response to Eternal_Memories
Right, so why is usr still there? Fix your post so people don't see it.
if usr isn't valid, what would I put?
In response to Micdogmic
Best response
Did you check the DM Reference?