Page 1 of 1

how to add an object property: indestructible?

Posted: Fri Jan 20, 2017 11:51 am
by WIZ4
How to Use the console command to add an object property: indestructible? How this is done in the Map Editor
Screenshot_1.png
Screenshot_1.png (153.84 KiB) Viewed 1951 times

Re: how to add an object property: indestructible?

Posted: Fri Jan 20, 2017 12:32 pm
by Adil

Code: Select all

entity.destructible=false
Entity is a reference to an object you want to change, you get one by using find_entity() functions for example. Or by

Code: Select all

entity=game.player.selected

Re: how to add an object property: indestructible?

Posted: Fri Jan 20, 2017 1:22 pm
by WIZ4
Adil wrote:

Code: Select all

entity.destructible=false
Entity is a reference to an object you want to change, you get one by using find_entity() functions for example. Or by

Code: Select all

entity=game.player.selected
Thank you!