Forum

> > CS2D > Scripts > Can't trigger Env_Breakable
Forums overviewCS2D overview Scripts overviewLog in to reply

English Can't trigger Env_Breakable

4 replies
To the start Previous 1 Next To the start

old Can't trigger Env_Breakable

Mami Tomoe
User Off Offline

Quote
I've tried using the following code in both the console and a
.lua
file yet the
Env_Breakable
did not return.

1
2
parse('trigger Altar1') --For Lua
trigger Altar1 --For console

IMG:https://i.imgur.com/KbT3u3y.png


I can only destroy it (or make it disappear I'm unsure) using
trigger
but I can't respawn it.

Also another issue is that setting transparency to 0.0 will reset it to 1.0 making 0.1 the lowest transparency option possible.

old Re: Can't trigger Env_Breakable

Mami Tomoe
User Off Offline

Quote
But I want to be able to break it and to have it return after a specific amount of time.

Is there a special reason as to why I can't restore it?

old Re: Can't trigger Env_Breakable

-3Jlou_nTu4-
User Off Offline

Quote
you can always do something similar ... for example, make an image and add the ability to cause damage to the image ... Further, you can catch events about the damage to the image => know when the image should be "dead" => able to regenerate it on the same place

old Re: Can't trigger Env_Breakable

Mami Tomoe
User Off Offline

Quote
Yeah I know it's possible but that's just a dirty workaround, why shouldn't we be able to restore env_breakable?
Like there is no obvious reason as to why it's bad to restore it, it's just like a lacking feature.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview