Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- llOffsetTextureSmoothly(float x, float y, integer face, float time)
- {
- vector start = llGetTextureOffset(face);
- vector end = <x, y, 0>;
- vector scale = llGetTextureScale(face); // If texture repeats never change, delete this line and hardcode the texture repeat vector instead. (will be faster)
- float rot = llGetTextureRot(face); // If texture rotation never changes, delete this line and hardcode the texture rotation value instead. (will be faster)
- integer i;
- llResetTime();
- while(llGetTime() < time)
- {
- llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_TEXTURE, ALL_SIDES, "9dcea2af-8364-9103-b489-14dd5054d9cf", scale, start+(end-start)*(llGetTime()*(1/time)), rot]);
- }
- llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_TEXTURE, ALL_SIDES, "9dcea2af-8364-9103-b489-14dd5054d9cf", scale, end, rot]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement