Jump to content

naughtyniece

Resident
  • Posts

    71
  • Joined

  • Last visited

Everything posted by naughtyniece

  1. Hi, It is 'sat in' but not attached to another prim, just looks like it is, a sort of housing if you like. Imagine that big wheel on price is right or similar. Then user will touch and it will spin fr a while, then after x slow down and then stop. I have got it rotating using llTargetOmega... just fiddling.. thanks for your help so far
  2. Ah, ok looking into it now, much thanks
  3. Thanks, but i cannot see any difference, and the second life help on llSetLocalRot doesn't explain much. How would i start/stop this rotating, now that it is using localrot? Sorry if i am being a bit dumb, but this is new to me, moving, sizing, hiding prims etc i can do but starting one rotating and then letting it stop.... no idea.
  4. Hi, i would like some help from the helpful masses please I have a prim (cylinder) that i would like to spin and then let slowly stop, like a tombola wheel or similar. I have the code i need to spin it on its x Axis, but struggling to make it spin then slow and stop, tried for - next and do while and also timer, all to no avail. rotation rot; default { state_entry() { vector xyz = <60,0,0> vector rads = xyz*DEG_TO_RAD; rot = llEuler2Rot(rads); } touch_start(integer s) { llSetRot(llGetRot()*rot); } so i would like to touch and then let it spin maybe for 30 seconds and then stop, at which point i can then calculate where it has stopped using the angle it stopped at. Its just the spinning , slowing and stopping i can't work out Much thanks Suzie
  5. Oh sorry, it told me it ddinht post it..
  6. Hi, I have a prim, it is physical and I drop it and it rolls around then stops. At that point i need the script to run, how do i detect when the prim has stopped moving? thank you Suzie
  7. Hi, I have a prim, it is physical and I drop it and it rolls around then stops. At that point i need the script to run, how do i detect when the prim has stopped moving? thank you Suzie
  8. Hi, I have a physical prim in the shape of cube, that i can throw, it has 6 faces with dots, yes it's a die. How, once it has settled can i tell which face is up? Thanks Suzie
  9. Ok i spotted my error, as soon as something else uses the channel, and isn't using the command lit, the fire goes out... silly me All fixed now
  10. Hello, I have a fire particle system i use in my fireplace, it is started by a command "lit" being sent, but if i move more than a certain distance from the prim, the particle system stops, and the fire goes out This is my code, what do i need to do to make this so it does not go out.? default { state_entry() { llListen (-32376,"","",""); } listen(integer channel, string name, key id, string message) { list data = llParseString2List(message,["|"],[]); string displayName = llList2String(data,0); string command = llList2String(data,1); if (command == "lit") { llParticleSystem([ PSYS_PART_FLAGS,( 0 |PSYS_PART_INTERP_COLOR_MASK |PSYS_PART_INTERP_SCALE_MASK |PSYS_PART_FOLLOW_SRC_MASK |PSYS_PART_EMISSIVE_MASK ), PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE , PSYS_PART_START_ALPHA,1, PSYS_PART_END_ALPHA,0.101961, PSYS_PART_START_COLOR,<1,1,0.4> , PSYS_PART_END_COLOR,<1,0.4,0> , PSYS_PART_START_SCALE,<0.78125,0.78125,0>, PSYS_PART_END_SCALE,<0.09375,0.09375,0>, PSYS_PART_MAX_AGE,2.19922, PSYS_SRC_MAX_AGE,0, PSYS_SRC_ACCEL,<0,0,0.296875>, PSYS_SRC_BURST_PART_COUNT,5, PSYS_SRC_BURST_RADIUS,0, PSYS_SRC_BURST_RATE,0.0976563, PSYS_SRC_BURST_SPEED_MIN,0.0507813, PSYS_SRC_BURST_SPEED_MAX,0.15625, PSYS_SRC_ANGLE_BEGIN,0, PSYS_SRC_ANGLE_END,0, PSYS_SRC_OMEGA,<0,0,0>, PSYS_SRC_TEXTURE, (key)"ed50299f-8f21-f555-a07d-49ad92e709a3", PSYS_SRC_TARGET_KEY, (key)"00000000-0000-0000-0000-000000000000" ]); } else { llParticleSystem([]);} } }
  11. Thanks Love, i am currently using displayName = llGetDisplayName(avatarkey) and then llShout(1700,displayName) and it works, and will have to do, and like you say i can add a message and then parse/remove. Thanks though, just wanted to check i wasn't missing a trick. always appreciate input
  12. Hi, I have a prim, that when touched shouts on a channel a specific message llShout(1700,"This is touched") I have another prim which is listening for the shout listen(integer channel, string name, key id, string message) I could add the displayName to the message llShout (1700,"This is touched" + displayName) and then truncate to separate, but i want a message AND the person who touched the prim. Looking at the variables within the listen function (integer channel, string name, key id, string message), i am assuming that i can send this info when touched, using ID or NAME but cant work out how. simply can i shout the person who touched AND a message? Thanks so much
  13. Hello I have a board and want to detect where it is being touched across the surface (4 positions indicated by a texture) I have written this code, but i am missing something simple perhaps? default { touch_start(integer num_detected) { vector vec = llDetectedPos(0); float x = vec.x; float y = vec.y; float z = vec.z; llWhisper(0, "Pos clicked: " + (string)llDetectedTouchPos(0)); llWhisper(0, "Pos clicked: " + (string)vec); if (x > 18.74) { llWhisper (0, "Left"); } else if (x > 18.58) { llWhisper (0, "Left Centre"); } else if (x > 18.47) { llWhisper (0, "Right Centre"); } else { llWhisper(0,"Right");} } } in an example i touch and :- DetectTouchedPos = <18.53076, 234.27490, 24.14132> Vec = <20.07341, 234.66890, 22.32412> It seems despite my setting vec.x on the llDetectedpos, it defaults to the prim position, what am i doing wrong please?? thanks for any guidance
  14. Thank you both. Will work out a different way round it. Much thanks
  15. Hi, Is it possible to script adding an item from your inventory to your avatar (for example, if there was a prim that said shoes and you clicked it, it would add a certain pair of shoes (named in the script) that were in your inventory to your feet? RLV does this, so i assume if permissions are set then this can be done via a script? thank you all Suzie
  16. Thanks, I found it, and am working on it now.. Thanks for the help I created a Cailibri one UUID = "3568aceb-912f-b756-fb5c-8de9d52175e9" Thanks all
  17. You are right, how strange, and how do I edit? or where is a good UUID ? I of have photoshop, if that helps.
  18. Hello All, The script as far as I can make out is 100% ok ResetCharIndex() { gCharIndex = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`"; gCharIndex += "abcdefghijklmnopqrstuvwxyz{|}~"; gCharIndex += "\n\n\n\n\n"; } and every character works, except } the usage script only has the standard line llMessageLinked(LINK_THIS,DISPLAY_STRING,message,"0"); I enter "I would like to see { } please" and I get "I would like to see { 0 please." its a mystery
  19. Hi, Yeah, I did look at the character list, and its strange the last4 are {/}~ and the {/ and ~ work perfectly, but the } does not. I will take apart the list and see if I can work it out Thanks
  20. Hi, I have used the wonderful Xyyyz Text to create a board for writing on and it works with one exception the character } is coming out as a 0 (zero), all other characters are perfect, and I can not work out how to fix this. Can anybody help me? thanks
  21. Thanks Rolig, I was hoping to avoid having to list all the possibilities as strings, as there are over 30 of them!!! They all start with [AA], was hoping I could just check the leftmost characters rather than listing every possible choice. e.g avatar may have any of the following attachements [aa] Dress XS [aa] Dress S [aa] Dress M [aa] Dress L [aa] Dress XL [aa] Suit XS..... etc etc all I want to know is if they are wearing an [aa] item of clothing? Thanks anyway for quick response
  22. Hi, I have a piece of script that goes through a list of what is attached to the avatar while (i < llGetListLength(AttachedUUIDs) ) { list temp = llGetObjectDetails(llList2Key(AttachedUUIDs,i),[OBJECT_NAME]); if(llList2String(temp,0) == "[AA] long long long description in here") { BroomOn = 1; } ++i; } i would like to check for several possible item descriptions all starting [AA], so ideally llGetSubString using the left most 4 characters... if i use llGetSUbString on a string its simple enough llGetSubString(string, start, end), but how would I use it with a list item as above please? I thought I might use if llGetSubString(llList2String(temp,0),0,4) but that gives me an error.Hope that a clear question Thanks
  23. Hi, I have a prim on the floor and i can detect collision_start to tell me the avatar as stepped on it. However i would like to detect if the avatar has an object (a broom) attached to their left hand. I found this but do not understand how to place it in a script integer isObjectAttachedToAvatar( key object, key avatar ){ return !llGetObjectPrimCount( object ) & //-- must be attached to someone (llGetOwnerKey( object ) == avatar); //-- must be owned by the same person }My script detects collision and starts and animation, but i only want that to happen IF they have the broom attached. collision_start(integer count) { key avatar = llDetectedKey(0); displayName = llGetDisplayName(avatar); if (avatar) llRequestPermissions (avatar, PERMISSION_TRIGGER_ANIMATION); else llStopAnimation (animation); }Also i would ideally like it not to ask if they wish to animate... but thats a seperate question i guess. Thank you for your help Suzie
×
×
  • Create New...