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

24 lines
1.6 KiB
Plaintext

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