I know this has been asked before, BUT I have an object I can wear..a "yeet kicker" when I wear this object and click the feet of someone else, they projectile into the air, I do an animated "kick" and a "yeet" sound plays. Is it possible to have the same effect with this as a "bumper"? Specifically if someone bumps into me could they effectively "yeet" themselves? There are no permissions needed when I click their feet, I can't figure out how to script well enough to know if this is even possible. Below is the script for the "yeet kicker"
default
{
attach(key k_avatar)
{
if (k_avatar != NULL_KEY)
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS);
}
run_time_permissions(integer permessi)
{
llTakeControls(CONTROL_LBUTTON, TRUE, TRUE);
}
control(key idTASTO, integer premuto, integer modifica)
{
if (premuto & modifica & CONTROL_LBUTTON)
llSensor("", NULL_KEY, AGENT, 2, PI);
}
sensor(integer n)
{
float forza = llGetObjectMass(llDetectedKey(0)) * 915000;
vector direzione = llVecNorm(llDetectedPos(0) - llGetPos()) * forza;
direzione.z = forza;
llStartAnimation("Kick");
llSleep(0.4);
llTriggerSound("a6a10ad3-3ff1-4532-0e4c-5f222ba35a92",1.0);
llTriggerSound("c868ee5f-7f2d-5a43-dff5-55701129ed0c",1.0);
llPushObject(llDetectedKey(0), direzione, ZERO_VECTOR, FALSE);
}
}