Trigger Linked Script

The **Trigger Linked Script** script allows you to trigger scripts that are attached to other props. This causes specific actions to trigger, such as a door opening as you approach it or making a clickable light switch.

You can use this script in the normal fashion, by adding it to a Trigger Box 01 prop, and use it to trigger when someone enters or exits the area defined by the trigger box.

You can also use it by adding it to just about any prop, and setting the **Clickable Trigger** state on the State tab, to use that prop as the trigger to activate another script on a different prop.

**Note**: The Trigger Linked Script script, albeit with less features, was previously known as the *Pass To Linked Prop* script.

## Example Setup

1. Create a VIP rope, make sure you set this to collidable.
2. Look up the PID (Prop ID) of the VIP rope, this can be found when you select the prop, behind the name (see image 1) write this number down.
3. Create a trigger box, and add the Pass To Linked Prop, type the PID number into the field.
4. Go to the state tab, and enable trigger.

## Parameters

The Trigger Linked Script has four parameters Target Prop ID, Reversed Trigger, Trigger on Enter and Tigger on Exit.

### Target Prop ID

The Target Prop ID is the ID of the prop you want to trigger the script on.

A button on the Prop Editor makes it really easy to get this. Edit the prop you intend to trigger, then click the PID button to copy that prop's ID to your clipboard. Once you have the PID, just paste it into the parameter box of the Trigger Linked Script.

It is possible to link up to four PIDs into this script by adding a semicolon (;) between each of the PIDs, for example:

PID: 445443464;45446446;53546646;5546641

### Reversed Trigger

This allows the trigger linked script to work in reverse. This can be mainly useful for doors to make them behave in reverse. Or if the desired mouse cursors aren't showing up as you would want them.

### Trigger on Enter / Exit

These parameters are self-explanatory. If you want to trigger the script when someone enters the trigger box, you check the 'On Enter' parameter. If you want to trigger when someone leaves the trigger box, check the 'On Exit' parameter. You can choose one or the other, or both, depending on your situation and how you want it to work.

## Scripts that can be used

The following scripts can be triggered by the Trigger Linked Script.

## Switches and triggers

This section describes settings for the prop that is identified by the Target Prop ID.

* For triggers, enable Trigger on the State tab
* For switches enable Clickable Trigger on the State tab

### Switches

When you turn the prop this script is attached to into a **clickable trigger** into the state tab, you essentially create a remote button/switch to trigger the script(s) on the linked prop. This allow you to for example turn on or off lights, start letting an emitter play or disable it, or if you are really creative even switch which emitter is displaying.

To use this script as a switch on a prop, uncheck the 'Trigger' state and check the 'Clickable Trigger' state.

When using this script as a clickable trigger, the 'Trigger on Enter' and 'Trigger on Exit' options do not apply.

The switches look like this:  and

### Trigger

While you can use the trigger box as an external clickable invisible switch as described in the previous section, you can also set this to **trigger** instead of a clickable trigger on the State tab. This will allow the user upon entering and/or exiting the trigger area to trigger a door from opening or closing when exiting.

You do not need to set any special states for this script if you are using it on a Trigger Box prop. The Trigger state is set automatically for you when you choose the script.

**Note**: You can set at what point a trigger box triggers, this can be either on entering or exiting, by enabling these settings on the trigger linked script.

 Bots -
Chromium -
Decorating Guides -
Deco Tools -
Domain -
Prop Editor -
Property -
Props -
Prop States -
Ramps -
Scripts -
Transport -
World Texture Editor -
 Animated Textures -
Audio Add Sound -
Audio Play Music -
Being.Me -
Bots -
Cached Web Image -
Dance Pole -
Door Object -
Lighting -
Move To scripts -
Pickup Object -
Sprites -
Scale Object -
**Trigger Linked Script** -
Web Browser (Chromium) -
 Animal Props -
Alpha Pine Tree -
Beds -
Breaking Out -
Chairs & Seating -
Doors -
Diving Board -
Dungeon Crosses -
Fire Places -
Floors -
Pole Dance Pole -
Primitive Props -
Lapdance Chairs -
Ramps -
Rope Prop -
Sign 01 -
Tileable Props -
Texture Translucent -
Triggers -
VIP Ropes