Forum

> > CS2D > Scripts > freeimage() vs killobject()
Forums overviewCS2D overview Scripts overviewLog in to reply

English freeimage() vs killobject()

1 reply
To the start Previous 1 Next To the start

old Re: freeimage() vs killobject()

DC
Admin Off Offline

Quote
Yes, there are differences.

cs2d cmd killobject does checks related to killing other objects than images, especially buildings. Like rewards, punishments and effects when killing a building. It does NOT remove tweens associated with the image.

cs2d cmd freeimage does not do all these checks but only removes tweens associated with that image.

So when using both with images the main difference is that tweens are not removed with cs2d cmd killobject. This is most likely nothing you want to happen. Therefore I recommend to just always use cs2d cmd freeimage to remove images and not cs2d cmd killobject.

There most likely isn't any relevant difference in peformance/traffic.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview