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

23 lines
1.6 KiB
Plaintext

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