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?
Copyright © 2015 BYOND. All rights reserved.