Editor Objects

Trigger


Trigger

Triggers are objects that are low to the surface & can be scripted for hit events.

Trigger Button

First Lets Create a Trigger:If you don’t have a table already opened File / New to open a new Table. Click on the Trigger button Move Cursor towards the table you are building. It should turn into a Trigger cursor, click this where you would like your Trigger placed. and you get a Trigger.

Now that we have a Trigger Created we can look at the Trigger Option Properties.

Click on options in the ToolBar and select the Trigger by clicking on it.

Doing this will show us the Trigger properties.

Note:All new Tables come with 4 Triggers already on them. They Are called LeftOutlane, RightOutlane, LeftInlane, RightInlane but they are not scripted to do anything yet.

Trigger- Name for type of object you have selected.

Name – Trigger1 The name of the Trigger, you can change this to whatever you want. The name is used to address the object through the script.

——Colors & Formatting

Shape – ShapeCircle & ShapeCustom – Custom lets you add points & edit the Triggers shape.

Visible – Visible checked or unseen unchecked. Default is checked

Radius -Changes the radius of the trigger. Bigger number makes it bigger. 25 is Default

——Position

XShows The X position of the Trigger on the table.

YShows The Y position of the Trigger on the table.

Surface – Selects a surface for the Trigger to be placed on.

——State

Enabled – needs additional script. Default is checked

——Misc

Timer Enabled – Unchecked is default. The Timer is off. He can be activated in the script and called by the procedure TriggerName_Timer()

Timer Interval – If enabled will call TriggerName_Timer() in the script .Unchecked is default. This option defines the time befor the procecedure is started 1000=1 second.

UserValue – This Variable is userdefined and can be use for wathever you want. I use it often as event flag in the script.


Trigger Script

Using demo5triggersinlaneoutlane.zip

Triggers are pretty simple to get working. In the above example you can open it up & check the Triggers out, in action. The script for the Triggers is at the bottom of the script in this demo.

In Trigger Options, on Trigger1 I unchecked visible. To Hide the Trigger1 when Table is played.

Note: LeftOutlane, RightOutlane, LeftInlane, RightInlane have events now also.

‘************************** Triggers Sub Trigger1_Hit()’Inside this Sub is what the Trigger1 will do
Playsound “LaunchBall”
End Sub


Sub RightInlane_Hit
AddScore (10)
Playsound “swoosh”
End Sub

Sub RightOutlane_Hit
AddScore (10)
Playsound “swoosh”
End Sub

Sub LeftInlane_Hit
AddScore (10)
Playsound “swoosh”
End Sub

Sub LeftOutlane_Hit
AddScore (10)
Playsound “swoosh”
End Sub

‘************************** Triggers Ends here

 

Source: www.armuco.ch

Category: Tags:
 

©2017 VPinBall.com

Facebook Auto Publish Powered By : XYZScripts.com

Log in with your credentials

or    

Forgot your details?

Create Account