Forum

> > CS2D > Scripts > trying to figure out a door system
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch trying to figure out a door system

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: trying to figure out a door system

shade506
User Off Offline

Zitieren
it did not help me , I have 5 separate doors all of them can be pressed once once all 5 doors are toggled open D6 will open. I called it a dyn door how could u not assume that how to make a door was my question ?

alt Re: trying to figure out a door system

Waldin
User Off Offline

Zitieren
some people uses a breakable and explodes some of its hp. so if breakable has 5 hp, when u open 1 door make it 1 damage with a explosion. i saw others like using npc and doors but idk

alt Re: trying to figure out a door system

VADemon
User Off Offline

Zitieren
It's easily doable with a chain of Trigger_If if you want to avoid Lua or cs2d entity trigger_if with Lua expression like this:
1
entity(tilex, tiley, "state") == true and entity(tilex, tiley, "state") == true ......

alt Re: trying to figure out a door system

Waldin
User Off Offline

Zitieren
Yes. but with 1 explosion using it how much times you want is enough (i remember that someone made that with lua in file archive but i didn't find it and wont do it if is possible in map editor)

alt Re: trying to figure out a door system

shade506
User Off Offline

Zitieren
@ demon
1
entity(1, 2, 'state') == false and entity(3, 2, 'state') == false and entity(5, 2, 'state') == false and entity(7, 2, 'state') == false and entity(9, 2, 'state') == false
and added it to trigger door 6 but still isn't working

update fixed it working with == true and lua was off while I was testing ty for the help
2× editiert, zuletzt 11.02.18 23:38:22
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht