Jump to content

RefugeStore

Resident
  • Posts

    5
  • Joined

  • Last visited

Reputation

1 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks, that's what I was afraid of. I'll create a new texture with the repeats I need.
  2. Hey guys. I don't know really anything about scripting, so I hope someone can help me. I've got a basic cylinder that I want to animate face 1 (just simple smooth rotation animation). This isn't the problem as the simple script available works just fine, but I would like to put some repeats into the texture. How can I change this script so I can make repeats in the horizontal direction? Is it possible? Thank you! -Iseul default { state_entry() { llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 4,1,1,1.0, 1,0.01); } }
  3. Thank you guys! I didn't realize I needed even more braces for it to work obviously. Scripting sure does have a lot of rules to remember! So confusing. The suggestions worked perfectly though, and the FALSE call on the SetTextureAnim was much needed as well, so every comment here was very helpful. I can't thank you guys enough!
  4. I still get a syntax error with that. Here's a screenshot -
  5. Hi guys, I'm having trouble, and I hope someone can help. I'm not at all a scripter, I know virtually nothing about it, but I really need a script for an item I'm making, and finding one that does the specific thing I need proved hard, so I thought I could make it. I'm making an item that has lights that I want to be able to turn a blinking effect on and off. By lights, I don't mean actual lit prims, but the mesh item has a certain face that when a texture I've made is set and animated using SetTextureAnim, it appears to blink the lights. I have no issue with the blinking lights without an on and off function. I've used a simple SetTextureAnim call in the past with no issue whatsoever. It's when I want to add the on,off function plus it calling a new texture to act as tho the lights are no longer blinking but still on. Here's a gyazo of what I want to achieve through a touch on/off script. - https://gyazo.com/7c0f4e0c7052089924199d9ac4b5b2ee So, it should be simple enough, but the things I've tried aren't working. If possible, I'd like to be able to use UUIDs instead of putting the textures into the mesh's inventory. What I tried to do and thought would work, didn't work, and I will paste below. Any help would be appreciated. I basically mashed the information I could find together, but obviously I either didn't use the correct type of functions, or I just don't understand how to put it all together and make it work. Thank you in advance. integer textureIsBeingAnimated; string texture1 = "89811b99-fc0e-ced7-53b7-3a925b3f46d5"; string texture2 = "3b126c86-079c-7856-d48d-ef4b358bf785"; default { touch_start(integer num_detected) { if (textureIsBeingAnimated) llSetTexture(texture1,1); llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 1,1,1,1.0, 1,1.0); else llSetTexture(texture2,1); llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 1,1,1,1.0, 1,0.0); textureIsBeingAnimated = !textureIsBeingAnimated; } }
×
×
  • Create New...