Hello! I'm trying to create a visibility system based on range and dense terrain. So every mob in the game has a var/image/Self which is simply a copy of the mob. All turfs with concealing terrain has their layer set to MOB_LAYER+1. The Self image has layer set to MOB_LAYER+2. Now when a mob moves into concealing terrain and is spotted, it will just do a spotter << src.Self. The problem is that the Self image is static. The animations won't work, and if you chance icon_state it won't update at all.
So I have two questions. Is it supposed to work like this? Shouldn't an image of an object mimic the object?
Second, if this is a bad way to go, do you have a different solution of this visibility system?
Thanks,
Gazoot
</<>
Nope, it doesn't work that way. An image has its own independent state because it's not "of" an object; it's attached to an object. An image is basically nothing more than an atom with no contents that's only visible to the players you specify.
Lummox JR