Support File BAM BAM Update v1.5-360 new script functions

ravarcade

Pinball Hall of Famer
Joined
Feb 8, 2020
Messages
120
Reaction score
255
Points
69
Favorite Pinball Machine
AFM

1. xBAM.Physics.SetBallMaterial elasticCoef, softnessCoef, staticFriction, kineticFriction
You change material for ALL balls for ball-vs-ball collisions.

2. FlipperName_Hit() subroutine
If you have LeftFlipper, RightFlipper, MiddleFlipper and want to know when flipper is hit, just write subroutines:
Code:
Sub LeftFlipper_Hit()
End Sub
Sub RightFlipper_Hit()
End Sub
Sub MiddleFlipper_Hit()
End Sub
Same way as you do for other FP objects.
There is one difference. You can add param to subroutine:
Code:
Sub LeftFlipper_Hit(normalizedballSpeed)
End Sub
normalizedballSpeed - speed of ball along normal vector of flipper. In other words how hard flipper is hit.

3. "per flipper" rotation charts
- FlipperExt.SetRotChart(string)
samples:
Code:
RightFlipperExt.SetRotChart("{0.0,0.0},{1000.0,100.0}[0.0,100.0]")
LeftFlipperExt.SetRotChart("{0.0,100.0}[0.0,0.0],[1000.0,100.0]")
String is in same format as in XML.
Between '{' '}' params for flipper button pressed, between '[' & ']' values for button released.

Processing text is slow, so use it only at table start or change of setting, but never in preHit event.

- xBAM.CreateRotChart(string) -> int
Same params as previous it returns ID of new chart. That chart is not applied to any flipper at this moment.

- FlipperExt.SetRotChart(int)
Argument is value returned from xBAM.CreateRotChart.
This SetRotChart is fast, so you can use it time.
 
Updated the resource and WPentries.
Please advise if any errors found.

Thank you for everything, Rafal.
 
Thanks Raf.

To all, those new stuff will be used for a next FizX major update ( not in next days lool ).
 
Thanks Raf.

To all, those new stuff will be used for a next FizX major update ( not in next days lool ).
Good new, because insert 1.2 version, then adapt then to 1.3, ..., the to 2.0 is easy but a little tedious. :whistle: :wink:
 
2.0 little tedious? 2.0 is less tedious than previous version
 
No, just to update 1.2 with 1.3 and after with 2.0.
But it was just a joke.
 
Last edited:
@Paolo, all new bam function since 2 years are mostly from my request for FizX... Mean all new feature are in FizX Code
 
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:
    DrazeScythe has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Torntabittz has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    brotherboard has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    GARRY040 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    BL2K has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Chilldog has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    rodneyfitz has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    ace19120 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tomasaco has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Greek_Jedi has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Beermano has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    02browns has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    nitram1864 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    aeponce has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    JEAN LUC has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    lorenzom has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    maxangelo19 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Dragonslapper has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    royaljet has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tyfox has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Goldtopboy has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    slick267 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    dabreeze has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Spike has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tofa has left the room.
      Chat Bot Mibs Chat Bot Mibs: Tofa has left the room.
      Back
      Top