- Joined
- Sep 21, 2017
- Messages
- 519
- Solutions
- 2
- Reaction score
- 250
- Points
- 75
- Favorite Pinball Machine
- Indiana Jones (Williams)
I know it is common to set the "LastSwitchHit" in each _Hit event, but since BAM is already getting known and generic Hit events for physics, what are people's thoughts on adding logic in there to say "if hit is on a switch then update the LastSwitchHit" tracker.
Most switch material is metal so I don't know if it is possible to do this. My thinking it would be something like:
and
Switches = GetObjectsInfoRange("Switch"...)
and then
Most switch material is metal so I don't know if it is possible to do this. My thinking it would be something like:
C#:
const IsRbPost = 1001
const IsRbBand = 1002
const IsDTWall = 1003
const IsMtl = 1004
const IsWd = 1005
const IsPlastic = 1006
const IsApron = 1007
const IsFlipper = 1008
const IsSling = 1009
const IsSwitch = 1010 'new
and
Switches = GetObjectsInfoRange("Switch"...)
and then
C#:
Sub Generic_Hit(FizX, ballspeed, material) 'Scatter Bounce and Hit Event
If FizX.ExtInt1 = IsSwitch Then
' get the FP switch object and update the LastSwitchHit value
End If