mob
player
var/trapped = 0
area
trap_zone
Entered(mob/player/pl)
pl.trapped = 1
Problem description: I am trying to make an area where, as a mob/player enters it, then its var/trapped is set to 1. The above works good but as soon as a moveable object enters it, then it gives error because that doesn't have a var/trapped. I thought Entered(mob/player/pl) will only proc upon mob/player entering it... How can I fix this?