I am going to preface this with the fact that I am blundering my way through the coding side of this program. I do not have a history in programming outside of plc/industrial equipment.
My issue is I cannot figure out how to influence a drop target state with the code.
My goal is to have a drop target only drop once it's been hit 5 times.
From what I've gathered the drop targets have 2 states Target_hit is the ball coming into contact with the target which starts the drop animation. and Target_dropped which is the state at the end of the animation.
I typed this up when I was first trying to work around it and it just crashes because im changing a state instead of influencing it.
Either way it doesn't work because I don't know what to reference to tell the target to reset.
Sub Waterfall_Target_Hit()
dim WFC
WFC = WFC + 1
if WFC >= 5 then Waterfall_Target_Raised = True and Waterfall_Target_Dropped = False
ifelse Waterfall_Target_Dropped = True and Waterfall_Target_Raised = False
End Sub



Top


Contributor










are all trademarks of VPFORUMS.