To put it simply... I want to use an object that can be remotely activated by a script, howerver due to my inexperience I am unable to fathom how to properly set it up. An example was provided to have said object start on touch... but that isn't what I'm wanting, and pretty much I was hoping if anyone would be generous enoguh to take a moment to help. Below you'll find the demo script for creating a " on touch" version, and if anyone could modify/ make a new script to allow the script to turn on/ off when sitting/ standing, I'd appreciate it. ( as a note, this is to be used for extending/ retracting tentacles for a place, where the tendrils extend towards the Avatar that sits down, then cease when they stand up.) // Demo of commanding Tentaculus Infestus from a scripted object, by Xoph Adamczyk.
// In this example, reachpos, endreach, and etrig commands are demonstrated.
// Almost any menu button label or chat command for Infestus can be sent
// from a scripted object by using llSay and the appropriate dialog channel.
// NOTE commands can also be sent from a script in Infestus -- there is a separate demo for that.
integer dialog_channel = 6;
integer mode;
default
{
state_entry()
{
}
touch_start(integer total_number)
{
if (mode == 0)
{
llOwnerSay("Commanding Infestus to point at the position of this object. Touch again to stop.");
llSay(dialog_channel, "reachpos " + (string)llGetPos());
}
else if (mode == 1)
{
llOwnerSay("Sending endreach command");
llSay(dialog_channel, "endreach");
}
else if (mode == 2)
{
llOwnerSay("Triggering Infestus (response and its duration depend on response settings in Infestus).\nNOTES:\n - owner must be within set range and\n - Infestus must have trigger mode set to external.\n\n**** WAIT for Infestus to retract, then click again for point-to-object demo.");
llSay(dialog_channel, "etrig " + llKey2Name(llGetOwner()));
}
mode = (mode+1)%3;
}
on_rez(integer ignoreme)
{
mode = 0;
llOwnerSay("Place this near Tentaculus Infestus and touch a few times to see reach trigger example.\nFull-perm script inside demonstrates how this is done.\nNOTES:\n - dialog channel 6 is assumed, and is the default.\n - Infestus trigger should be set to External.");
}
}