mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
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
|
||||
|
||||
Public Overrides Sub ClickFunction()
|
||||
If Me.TriggerID = 1 Then
|
||||
ActionScript.TempInputDirection = -1
|
||||
Me.clickedToActivate = True
|
||||
TriggerScript(False)
|
||||
End If
|
||||
End Sub
|
||||
If Me.TriggerID = 1 Or Me.TriggerID = 2 Then
|
||||
ActionScript.TempInputDirection = -1
|
||||
Me.clickedToActivate = True
|
||||
TriggerScript(False)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
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
|
||||
@ -81,10 +81,13 @@
|
||||
Me.clickedToActivate = False
|
||||
SoundManager.PlaySound("select")
|
||||
End If
|
||||
|
||||
oS.ActionScript.StartScript(Me._scriptID, GetActivationID())
|
||||
ActionScript.TempSpin = True
|
||||
End If
|
||||
If Me.TriggerID = 2 Then
|
||||
oS.ActionScript.StartScript(Me.AdditionalValue, GetActivationID())
|
||||
Else
|
||||
oS.ActionScript.StartScript(Me._scriptID, GetActivationID())
|
||||
ActionScript.TempSpin = True
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
TriggeredScriptBlock = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user