Jump to content

demon007006

Resident
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About demon007006

  • Rank
    Newbie
  1. Hi there to everyone. i am try to found some scipt to make simple dancer in object. Now i will try to explain more... It try to make my own dacer script and it should looks like that: 1. You wear this object on your avatar. 2. You write in chat "play" or "on". 3. You listen music and you avatar dancing. So, i got some code but i am still don't know how to make "silent acept permition animation", cuz when you wear object on avat that asks you about to acept animation. How much dancers like this i see before they are never ask me about permision and you just write "play" in chat an it works. Please, help with this code to make silent permistion (and i know this code are not perfect, but i will fix it) integer ON = 0; integer perm; //string animation = "Dance"; string song = "song"; default { on_rez(integer startup) { llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION); } state_entry() { llListen(0,"","",""); } listen(integer perm, string name, key id, string msg) { if(llGetPermissions()&PERMISSION_TRIGGER_ANIMATION) { msg = llToLower(msg); if (ON == 0 && msg == "on") { llOwnerSay("in progress"); ON = 1; llSetTimerEvent(2.0); llStartAnimation(llGetInventoryName(INVENTORY_ANIMATION,0)); }else if(msg == "off") { llStopSound(); llStopAnimation("Dance 14"); llOwnerSay("stoped"); } } } } Thanks in advance =^_^=
×
×
  • Create New...