Account
News
Downloads
Community
Wiki
Walkthrough

TG11ARTrapWallCorner01SCRIPT

Editor ID:
TG11ARTrapWallCorner01SCRIPT


Form ID:
0004EC69


Type:
Object


Script:
scn TG11ARTrapWallCorner01SCRIPT

short activated
short open
short next
ref mySelf
ref myParent

begin onActivate

; prevents self re-activation if there's no parent linked
if activated == 0

set mySelf to getSelf
set myParent to getParentRef
set activated to 1

endif

; if player clicks on me give him a clue
if isActionRef player == 1

if open == 1
message "Diese Mauer wird per Fernsteuerung gesenkt."
endif

elseif isActionRef mySelf == 0

if open == 0
playgroup forward 0
triggerHitShader 2
set open to 1
else
playgroup backward 1
set open to 0
endif

set next to 1


endif

end

begin gameMode

; daisy-chain activation
if next == 1
myParent.activate mySelf 1
if open == 1
set next to 2
else
set next to 0
endif
endif

If GetStage TG11Heist == 70
If GetDistance Player <= 512
SetStage TG11Heist 71
EndIf
EndIf


end


Mit der Nutzung dieser Website erklären Sie sich damit einverstanden, dass wir Cookies verwenden. Weitere Informationen hierzu finden Sie in unserer Datenschutzerklärung.
OK