/////////////////////////////////////////////////////////////////////////// // Copyright (C) Wizardry and Steamworks 2012 - License: GNU GPLv3 // // Please see: http://www.gnu.org/licenses/gpl.html for legal details, // // rights of fair usage, the disclaimer and warranty conditions. // /////////////////////////////////////////////////////////////////////////// key SCRIPTED_AGENT_KEY = "a639881b-1b3a-49d9-a677-f1a48a565680"; default { state_entry() { ////////////// CUT ////////////// llSitTarget(<0,0,1>, ZERO_ROTATION); ////////////// CUT ////////////// llSensorRepeat("", SCRIPTED_AGENT_KEY, AGENT, 64, TWO_PI, 1); } sensor(integer num) { llInstantMessage(SCRIPTED_AGENT_KEY, "auth 53x11"); llSleep(1.1-llGetRegionTimeDilation()); llInstantMessage(SCRIPTED_AGENT_KEY, "s " + (string)llGetKey()); } changed(integer change) { if(change & CHANGED_LINK) { key av = llAvatarOnSitTarget(); if(av != SCRIPTED_AGENT_KEY) { llUnSit(av); return; } state sitting; } } } state sitting { ////////////// CUT ////////////// state_entry() { llRequestPermissions(SCRIPTED_AGENT_KEY, PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { if(perm & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("Breakdance"); } } ////////////// CUT ////////////// changed(integer change) { if(change & CHANGED_LINK) { if(llAvatarOnSitTarget() == SCRIPTED_AGENT_KEY) return; state sitting; } } }