- Joined
- Jun 21, 2020
- Messages
- 2,010
- Solutions
- 1
- Reaction score
- 1,171
- Points
- 125
- Favorite Pinball Machine
- Indiana Jones
So, i'm trying to add xBAM magnetic field to a table and i'm surely missing something so simple that I'm overlooking it.
I tried with coordinates (as example below) and tied to a trigger / light coordinate but without results.
The flow is, I press the magnasave button, and if certain criteria is met, magnet is active and set. In debug I can see it is. But the ball is ignored nonetheless.
The timers exist on the table and the false conditions are also set in endofball and resetfornewgame
I have set:
on key pressed, if conditions are met:
The sub called from above
The sub _expired
I have checked the example table in bam examples thread and gopinball link as well, but i'm stuck. I looked at TOTAN table and... not sure I get it and it's too complex for what I want anyway.
Hints, tips, a post I've missed with the "hidden features" :D, anything will help for sure so, thanks in advance.
I tried with coordinates (as example below) and tied to a trigger / light coordinate but without results.
The flow is, I press the magnasave button, and if certain criteria is met, magnet is active and set. In debug I can see it is. But the ball is ignored nonetheless.
The timers exist on the table and the false conditions are also set in endofball and resetfornewgame
I have set:
Code:
Dim leftMagnaSave ' X Y Z Range Strength
Set leftMagnaSave = xBAM.CreateMagneticField( 474, 708, 0, 40, 0)
on key pressed, if conditions are met:
Code:
If KeyCode = GetKeyCode(Special1Key) Then
If (LightMagnetLeft.State = BulbOn) Then
LeftMagnetSwitch = TRUE
LeftMagnetTimer.Set TRUE, 5000
leftMagnet()
End If
End If
The sub called from above
Code:
Sub LeftMagnet()
leftMagnaSave.Strength = 10
LightLeftInLane.FlashForMs 5000, 100, BulbOn
End Sub
The sub _expired
Code:
Sub LeftMagnetTimer_Expired()
LeftMagnetTimer.Enabled = FALSE
leftMagnaSave.Strength = 0
LightMagnetLeft.State = BulbOff
LeftMagnetSwitch = FALSE
End Sub
I have checked the example table in bam examples thread and gopinball link as well, but i'm stuck. I looked at TOTAN table and... not sure I get it and it's too complex for what I want anyway.
Hints, tips, a post I've missed with the "hidden features" :D, anything will help for sure so, thanks in advance.