- Joined
- Sep 21, 2017
- Messages
- 462
- Solutions
- 1
- Reaction score
- 237
- Points
- 55
- Favorite Pinball Machine
- Indiana Jones (Williams)
For the Theatre of Magic mirror effect, I've decided I will track the balls (up to 4) that are on the table. The problem is that the script for the table is doing a lot of kicker destroy balls/create balls. This has the unfortunate issue of me losing track of a ball reference. Getting the ball reference from one kicker to the ball reference to another kicker causes a lot of coding and BAM calls, which do not seem efficient.
It should be simple to have kicker1.CreateBall actually return a BAM reference to the ball.
My work around:
Since I can't get a reference to the ball, I then have to call
xBam.BallCloseTo(x,y,z).
But kickers do not have a "Z" value, and since the table has ramps and different heights with hidden kickers on different levels, I need Z.
So, I rely on retrieving the ObjectInfo for the kicker like: xBAM.FindObject(kicker.Name).Position
All of this could be simplified if there was just an "Ext" method for a Kicker that would give me a BAM ball reference.
set bamBall = kicker1Ext.CreateBall(...)
or
set bamBall = kicker1Ext.GetBall() ' can return nothing if there isn't a ball?
where hidden kickers are used to move the ball between a magnet and drop it, or between trunk magnet and when it drops it
@ravarcade is this something you would be able to provide via BAM?
It should be simple to have kicker1.CreateBall actually return a BAM reference to the ball.
My work around:
Since I can't get a reference to the ball, I then have to call
xBam.BallCloseTo(x,y,z).
But kickers do not have a "Z" value, and since the table has ramps and different heights with hidden kickers on different levels, I need Z.
So, I rely on retrieving the ObjectInfo for the kicker like: xBAM.FindObject(kicker.Name).Position
All of this could be simplified if there was just an "Ext" method for a Kicker that would give me a BAM ball reference.
set bamBall = kicker1Ext.CreateBall(...)
or
set bamBall = kicker1Ext.GetBall() ' can return nothing if there isn't a ball?
where hidden kickers are used to move the ball between a magnet and drop it, or between trunk magnet and when it drops it
@ravarcade is this something you would be able to provide via BAM?
Last edited: