anim_magic_chest.lslp 1.5 KB

123456789101112131415161718192021222324252627
  1. default
  2. {// zFire Xue Prim Animator Generator 5.1 Fastest Web Version.
  3. // Script belongs to Fire Centaur
  4. // This script goes into prim named: Object
  5. on_rez(integer r){llResetScript();}
  6. link_message(integer s, integer n, string m, key id)
  7. {integer stat=llGetStatus(1);
  8. if (n!=-99)return;
  9. if(m=="p0"){ //zF Animation Frame #0
  10. vector Zfire=llGetScale();
  11. vector zFire=<-0.01074,-0.00003,0.36711>;
  12. vector zfIre=<0.91800,0.67032,1.81060>;
  13. vector zfiRe=< zFire.x/zfIre.x,zFire.y/zfIre.y,zFire.z/zfIre.z>;
  14. vector zfirE=< Zfire.x*zfiRe.x,Zfire.y*zfiRe.y,Zfire.z*zfiRe.z>;
  15. llSetPrimitiveParams([6, zfirE,8, <0.01234,0.70698,-0.70701,0.01258> / llGetRootRotation(),9,1,0,<0.500000, 1.0, 0.0>,0.0,<0.0, 0.0, 0.0>,<1.0, 1.0, 0.0>,<0.0, 0.0, 0.0>,25,0,0.0,25,1,0.0,25,2,0.0,25,3,0.0,25,4,0.0]); }
  16. if(m=="p1"){ //zF Animation Frame #1
  17. vector Zfire=llGetScale();
  18. vector zFire=<0.12543,0.00005,0.67592>;
  19. vector zfIre=<0.91800,0.67032,1.81060>;
  20. vector zfiRe=< zFire.x/zfIre.x,zFire.y/zfIre.y,zFire.z/zfIre.z>;
  21. vector zfirE=< Zfire.x*zfiRe.x,Zfire.y*zfiRe.y,Zfire.z*zfiRe.z>;
  22. llSetPrimitiveParams([6, zfirE,8, <0.24763,-0.66231,0.66242,0.24742> / llGetRootRotation(),9,1,0,<0.500000, 1.0, 0.0>,0.0,<0.0, 0.0, 0.0>,<1.0, 1.0, 0.0>,<0.0, 0.0, 0.0>,25,0,0.0,25,1,0.0,25,2,0.0,25,3,0.0,25,4,0.0]); }
  23. if(stat){llSetStatus(1,1);}}}
  24. // Please leave the following line intact to show where the script lives in Git:
  25. // SLOODLE LSL Script Git Location: mod/interaction-1.0/objects/magicchest/assets/anim_magic_chest.lslp