Jump to content

Ruthven Ravenhurst

Resident
  • Posts

    492
  • Joined

  • Last visited

Reputation

150 Excellent

Recent Profile Visitors

1,380 profile views
  1. Hi, I was scrolling the functions page, and came across LlDerezObject. I tried to test it in world and the script window wasn't recognizing it. I assume that means it's not active yet. Do we know when that will be?
  2. llGetNumberOfPrims will give you the number of links including seated avatars, as you clearly already know. llGetObjectPrimCount(llGetKey()) will give the prim count without the avatars. So for example a car with 4 seaters would be, say 20 prims, but the car by itself would be 16 prims. So the seated avatars prim numbers would be 17, 18, 19, 20 You could run a loop to get those numbers.
  3. I assume this is a worn object, based on the names of some of the globals. You have it resetting on rez. If it's worn already when you log in, that's triggering the on rez event. Remove or comment out the reset function there and it should be fine
  4. This example on LlSetKeyFramedMotion does just that. It does use a sensor, but you could easily change it to a timer that polls for the position and rotation of the avatar/object it's following. The benefit of the timer is you could get that info from across the sim and at a much larger height, rather than the limit of 96m in the sensor
  5. If you only need 2 different timers, there is the sensor event. You can have it look for an avatar with it's own key as the name, and with a very short range. This will trigger the no_sensor event, where you can set the second timer functions. Another one is to give each timed function a number Global: GTimer; //1 for a sound, 2 for a light, 3 for saying something. Set the numbers to match the thing you want to happen when the timer goes off Each time you need to use llSetTimerEvent, set GTimer to the appropriate number { ... other things in this event...; GTimer = 1; llSetTimerEvent (10.0) } timer () { if(GTimer == 1) { llPlaySound("sound name", 0.5); } else if(GTimer == 2) { ... function (s) to set lights... } else if(GTimer ==3) { llSay(0, "this is timer mode 3"); } GTimer = 0;//reset to 0 so nothing happens if timer goes off llSetTimerEvent (0);//turn the timer off } Hope this helps
  6. Yes, sort of. You'll need to bring the gif into a photo editing software and break up the layers into a grid, and turn it into a flat texture used with llTextureAnim. There may be some online generators that can do that for you.
  7. Also this will eventually break the script. If the end user drops something into the inventory, the script will reset, and it won't be able to get the key of the non-fullperm notecard in state_entry again
  8. This forum is for help with scripts you are working on. If you want someone to make a script for you, post in the Wanted forum, or In World Employment. You likely won't get someone to make it for free either, but it could be a fun project for someone that wants to. Edit to add: And now I see you posted the same request almost a day ago in another forum, and someone else told you basically the same thing....🤷‍♂️
  9. Something like alt-text in a browser? Unfortunately there's no way to do that in lsl😕 The closest you'd get to that on an object is the hover tips with all the info, but that doesn't work on attachments as far as I know.
  10. Yeah, if I was to make one with llTakeControls, I would have it not pass controls to ither6 scripts and for pose change/movement I'd use: Page Up/Down: Next/Previous* I thought these were options? Arrows keys for moving avatar left, right, forward, backward. Mouse Left to turn left Mouse Right to turn Right* Nevermind, guess this isn't an option. And to rotate forward/backward, umm....
  11. Use llGetAgentSize. If it returns zero_vector, wait a few seconds and try again
  12. Try it like this? Capturing it as a key, then listing it inside the function list List = ["n","n","13056ed9-7351-446d-b7ee-3152aeffed1a"];default{ touch_start(integer total_number) { key TOUCHER = llDetectedKey(0); integer found = ~llListFindList(List,[TOUCHER]); if(found){llSay(0,"Found");llSay(0,(string)found);} else{llSay(0,"Not Found");llSay(0,(string)found);} }}
  13. Also this should be an && test, as the OR will always result to true in this case, so: if((number != 10006) && (number != 10008))
  14. 😀 llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_PHANTOM,( llDetectedType(0) & AGENT)]);
  15. can also do toggle = -toggle; float toggle = 1.0;//can keep as integer you want, but it's being converted to a float in the vector anyways default { touch_start(integer total_number) { llPlaySound(DOOR_SOUND, VOL); toggle = -toggle; llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POS_LOCAL, llList2Vector(llGetLinkPrimitiveParams(LINK_THIS, [PRIM_POS_LOCAL]), 0) + <toggle, 0.0, 0.0 >]); } }
×
×
  • Create New...