withoutusername Posted March 24 Share Posted March 24 i really can't write easy script... i have 4 differnt animations (1,2,3,4) i need script where i will touch some object and random animation will start! Link to comment Share on other sites More sharing options...
sprightlysprite Posted March 25 Share Posted March 25 (edited) default { touch_start(integer n) { llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(key id, integer perms) { if (perms & PERMISSION_TRIGGER_ANIMATION) { integer n = llGetInventoryNumber(INVENTORY_ANIMATION); integer i = (integer) llFrand(n); llStartAnimation(id, llGetInventoryName(INVENTORY_ANIMATION, i); } } } Edited March 25 by Quartz Mole 5 1 Link to comment Share on other sites More sharing options...
withoutusername Posted March 25 Author Share Posted March 25 (edited) 13 hours ago, sprightlysprite said: default { touch_start(integer n) { llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(key id, integer perms) { if (perms & PERMISSION_TRIGGER_ANIMATION) { integer n = llGetInventoryNumber(INVENTORY_ANIMATION); integer i = (integer) llFrand(n); llStartAnimation(id, llGetInventoryName(INVENTORY_ANIMATION, i); } } } THANK YOU!!!! Edited March 25 by Quartz Mole 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now