Are you wanting to make the tilt function?
or are you just wanting to add some extra things that happen when the table tilts?
vpmNudge.TiltObj = Array(Bumper1, Bumper2, Bumper3, LeftSlingshot, RightSlingshot, dummyobject)
So if you made a dummy object, like a slingshot (named dummy object here)
could you not just have a timer check if dummyobject is disabled.
If it is, then the table is tilted, so do your stuff
Or a light?
If you put a light someplace, with a power of 0 so technically you will never see it
and set the light to be normally on, if it is part of the tilt array, when the table is tilted will it turn the lamp off when it disables the other tilt objects?
If so, you could just watch for dummyobject.state = 0
The other objects i am not sure what you watch for?
would it be dummyobject.disabled = 1 ?
eh just some ideas, on a non DMD table it is easy, just watch for the tilt lamp to go on
maybe there is a way to watch for vpmNudge.tiltobject to be triggered, but i am not sure what the syntax would be?
I think it was something like this, but not 100% sure as i never wound up using it
Sub TiltTimer_Timer()
If TiltObjects = True then
PlaySound "Tilted"
LampName.State = 1
LampName2.State = 0
else
LampName.State = 0
LampName2.State = 1
StopSound "Tilted"
End If
End Sub
Edited by wiesshund, 22 February 2021 - 11:32 AM.