Forum

> > CS2D > Scripts > trying to figure out a door system
Forums overviewCS2D overview Scripts overviewLog in to reply

English trying to figure out a door system

7 replies
To the start Previous 1 Next To the start

old Re: trying to figure out a door system

shade506
User Off Offline

Quote
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 ?

old Re: trying to figure out a door system

Waldin
User Off Offline

Quote
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

old Re: trying to figure out a door system

VADemon
User Off Offline

Quote
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 ......

old Re: trying to figure out a door system

Waldin
User Off Offline

Quote
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)

old Re: trying to figure out a door system

shade506
User Off Offline

Quote
@ 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
edited 2×, last 11.02.18 11:38:22 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview