25 lines
440 B
Plaintext
25 lines
440 B
Plaintext
|
ScriptName _00E_UndercityAisolonPortScript Extends ObjectReference
|
||
|
|
||
|
Actor Property playerRef Auto
|
||
|
ObjectReference Property destPos Auto
|
||
|
Message Property shippingMSG Auto
|
||
|
|
||
|
Bool menu = false
|
||
|
int buttonPressed
|
||
|
|
||
|
|
||
|
Event OnActivate( ObjectReference ref )
|
||
|
|
||
|
if( ref == playerRef )
|
||
|
|
||
|
buttonPressed = shippingMSG.Show()
|
||
|
|
||
|
; ship the player
|
||
|
if( buttonPressed == 0 )
|
||
|
playerRef.MoveTo( destPos )
|
||
|
EndIf
|
||
|
; otherwise not
|
||
|
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|