BAM Why is BallInfo.Id not equal to the BallID?

madmrmax

Weeeeeee
Site Supporters
Joined
Sep 21, 2017
Messages
462
Solutions
1
Reaction score
237
Points
55
Favorite Pinball Machine
Indiana Jones (Williams)
If I've created a ball in a kicker with a specific ball ID (say 42), why doesn't the xBam.BallCloseTo().ID give me 42? It only returns -1.

Is there some other property on BallInfo that returns the BallID?
C#:
    call PlungerKicker.CreateBall(,,,42)
    
    dim kickerObjInfo: set kickerObjInfo = xBAM.FindObject(PlungerKicker.Name)
    dim kickerBall: set kickerBall = xBam.BallCloseTo(kickerObjInfo.Position.X, kickerObjInfo.Position.Y, kickerObjInfo.Position.Z)

    addDebugText "kickerball ID = " & kickerBall.Id

Code:
BallInfo (from xBAM.Ball or xBAM.BallCloseTo)
    .Position
        .x
        .y
        .z
    .PositionGlobal
        .x
        .y
        .z
    .Velocity
        .x
        .y
        .z
    .Speed
    .HitSpeed
    .Exist
    .ExtInt1   (can be SET or READ)
    .ExtInt2   (can be SET or READ)
    .ExtInt3   (can be SET or READ)
    .ExtFloat1 (can be SET or READ)
    .ExtFloat2 (can be SET or READ)
    .ExtFloat3 (can be SET or READ)
    .Id        (READ only)
    .Name      (can be SET or READ)
    .UpdateBall Red, Green, Blue, DirtTexture, ReflectionTexturem, ReflectionInPlayfield
    .Opacity   (only SET)
    .SetBallOpacityWithEasing opacity, time, easingFunction
    .ExtTimer1 (READ only)
    .ExtTimer2 (READ only)
    .ExtTimer3 (READ only)
    .ResetExtTimer idx  (idx = 1, 2, 3)
    .StopExtTimer idx   (idx = 1, 2, 3)   
    .Rotation  (READ only) - current rotation along all 3 axis
    .RotationSpeed (READ only) - current rotation speed/omega along all 3 axis
    .SetShadowColor read, green, blue - color with 3 float values in range 0.0 - 1.0
    .SetPosition x, y, z - move ball to point
    .SetVelocity x, y, z
    .SetOmega x, y, z
    .OutVelocity (READ only)
    .OutPosition  (READ only)
    .OutPositionGlobal  (READ only)
    .OutRotation  (READ only)
    .OutSpeed  (READ only)
    .SetMaterial elasticCoef, elasticCoef, staticFriction, kineticFriction
    .lineardamping (read/write)
    .angulardamping (read/write)
    .SetAngularDamping x, y, z2yFlag
    .angularSpeed (READ only)
 
Has anyone used BallInfo.Id before and know what it is supposed to represent?

@ravarcade for FYI
 
Last edited:
General chit-chat
Help Users
You can interact with the ChatGPT Bot in any Chat Room and there is a dedicated room. The command is /ai followed by a space and then your ? or inquiry.
ie: /ai What is a EM Pinball Machine?
  • No one is chatting at the moment.
  • Chat Bot Mibs Chat Bot Mibs:
    MedievilMadness has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Pinbalbilly has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    flipjuice has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    apollo2000 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Gmelo1 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    jose49 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    darcel has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    cocopops has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Nightvoice has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    drew1 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Cicero Silva has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    manstein has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    1000 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Destruck62 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    WeadlyDeapon has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    SaixXemnas has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Gege has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Fatmeatball has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    titomajo has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    daveseawater has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    rockin ray has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Citron68 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    hammerpower has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    max37170 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    OZZOLO has left the room.
      Chat Bot Mibs Chat Bot Mibs: OZZOLO has left the room.
      Back
      Top