Fixed scriptblocks not showing the text in AdditionalValue when the Action value is set to 2
This commit is contained in:
parent
3799887e15
commit
e8d980b34a
|
@ -54,12 +54,12 @@
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Overrides Sub ClickFunction()
|
Public Overrides Sub ClickFunction()
|
||||||
If Me.TriggerID = 1 Then
|
If Me.TriggerID = 1 Or Me.TriggerID = 2 Then
|
||||||
ActionScript.TempInputDirection = -1
|
ActionScript.TempInputDirection = -1
|
||||||
Me.clickedToActivate = True
|
Me.clickedToActivate = True
|
||||||
TriggerScript(False)
|
TriggerScript(False)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Overrides Sub Update()
|
Public Overrides Sub Update()
|
||||||
If Me.ActivateScript = True And Screen.Camera.Position.X = Me.Position.X And Screen.Camera.Position.Z = Me.Position.Z And CInt(Screen.Camera.Position.Y) = CInt(Me.Position.Y) Then
|
If Me.ActivateScript = True And Screen.Camera.Position.X = Me.Position.X And Screen.Camera.Position.Z = Me.Position.Z And CInt(Screen.Camera.Position.Y) = CInt(Me.Position.Y) Then
|
||||||
|
@ -81,10 +81,13 @@
|
||||||
Me.clickedToActivate = False
|
Me.clickedToActivate = False
|
||||||
SoundManager.PlaySound("select")
|
SoundManager.PlaySound("select")
|
||||||
End If
|
End If
|
||||||
|
If Me.TriggerID = 2 Then
|
||||||
oS.ActionScript.StartScript(Me._scriptID, GetActivationID())
|
oS.ActionScript.StartScript(Me.AdditionalValue, GetActivationID())
|
||||||
ActionScript.TempSpin = True
|
Else
|
||||||
End If
|
oS.ActionScript.StartScript(Me._scriptID, GetActivationID())
|
||||||
|
ActionScript.TempSpin = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
TriggeredScriptBlock = False
|
TriggeredScriptBlock = False
|
||||||
|
|
Loading…
Reference in New Issue