hi, as a first guess, instead of ENTITY*, its handle should be used for saving somehow. it is said to be the same on every run. but I don't have a ready to use solution... or save the file name of the entity model with the necessary properties (x,y,z, pan,tilt... flags...)