Jump to content



Photo
- - - - -

Target must not fall

target event hit

  • Please log in to reply
3 replies to this topic

#1 boriskarloff

boriskarloff

    Enthusiast

  • Members
  • PipPipPip
  • 220 posts

  • Flag: Italy

  • Favorite Pinball: kenney station

Posted 02 December 2023 - 05:57 PM

I have a target is dropped when I want, not by the ball. And it is not a problem.

The problem is I need to play a sound when the ball hits it.

But if the Hit event is anabled, it goes down.

 

How can I manage this situation?

 

 



#2 unclewilly

unclewilly

    sofa king.....

  • VIP
  • 5,170 posts
  • Location:Baltimore, Maryland

  • Flag: United States of America

  • Favorite Pinball: tz, tom, big hurt, who dunnit



Posted 02 December 2023 - 06:18 PM

Don't use a drop target use a primitive or a wall and then control the sound and the dropping from the hit event for the wall

"it will all be ok in the end, if it's not ok, it's not the end"
 
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx

uw2.gif


#3 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,859 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 02 December 2023 - 08:34 PM

I have a target is dropped when I want, not by the ball. And it is not a problem.

The problem is I need to play a sound when the ball hits it.

But if the Hit event is anabled, it goes down.

 

How can I manage this situation?

 

 

use the target for the looks, no collision / hit event

use an invisible wall around the target for the actual hitting event

 

then just do
sub invisiwall_hit

Playsound "blah"
end sub

 

 

If circumstances for the dropping at not related to it being hit at all

then just have your drop event set both to isdropped = 1


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#4 boriskarloff

boriskarloff

    Enthusiast

  • Members
  • PipPipPip
  • 220 posts

  • Flag: Italy

  • Favorite Pinball: kenney station

Posted 02 December 2023 - 10:03 PM

Thanks







Also tagged with one or more of these keywords: target, event, hit