P3D-Legacy/P3D/Content/Data/Scripts/underground/switchcenter.dat

21 lines
1.4 KiB
Plaintext

version=2
@Text.show(It's labeled~Switch 2.*Press it?)
@Options.show(Yes,No)
:when:Yes
@entity.setvisible(11,<not entity.visible(11)>)
@entity.setvisible(12,<not entity.visible(12)>)
@entity.setvisible(15,<not entity.visible(15)>)
@entity.setvisible(17,<not entity.visible(17)>)
@entity.setcollision(11,<not entity.collision(11)>)
@entity.setcollision(12,<not entity.collision(12)>)
@entity.setcollision(15,<not entity.collision(15)>)
@entity.setcollision(17,<not entity.collision(17)>)
@sound.play(shutter)
:if:<register.registered(GolUndSwitch2)>=True
@register.unregister(GolUndSwitch2)
:else
@register.register(GolUndSwitch2)
:endif
:when:No
:endwhen
:end