Yes thank you - I admit I am over my head with this LSL.
I simply want an av to sit in a chair and be given a book in one seamless action. I have the sit script and I have the give book script BUT I cannot figure out how to make them act togeher. I'm willing to pay someone at this point to write the script I need! LOL
Sit script is this:
// Basic sit-pose script by Lex Neva
default
{
state_entry() {
llSitTarget(<0.01975, 0.32866, 0.12265>, <-0.00000, 0.00000, 0.70711, 0.70711>);
}
changed(integer change) {
if (llAvatarOnSitTarget() != NULL_KEY)
llRequestPermissions(llAvatarOnSitTarget(),
PERMISSION_TRIGGER_ANIMATION);
}
run_time_permissions(integer perm) {
string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
if (anim != "") {
llStopAnimation("sit");
llStartAnimation(anim);
}
}
}
Gve Book Script is this:
default
{
touch_start(integer total_number)
{
llGiveInventory(llDetectedKey(0), "Book for Reading *wear*");
}
}
If there is anyone out there willing to help I would be very appreciative!
Thanks-
Daniel