Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Leo1452

  • Rank
  1. How would you combine that with the laser blast so that it lines up with what the blast object has passed through?
  2. I'm making a sort of laser beam game where people ride cars that shoot blasts. The cars don't move with physics. The blasts should pass through through everything except the cars that are part of the game. Is there a way to make a bullet that only collides with objects of a certain name? If not, is there a way to make a phantom bullet that notices when it's passed through objects of a certain name so that it can perform some sort of reaction?
  3. The wiki for this function says that this statement would return "The account creation/"born on" date as a string in an ISO 8601 format of YYYY-MM-DD," but I'm getting a string that looks like a UUID. Can someone help me with a solution to getting an agent's birth date from DATA_BORN?
  4. I'd have a listener on channel 0. For every message in nearby chat, it would check if that string contains a substring from a list in my script and perform some action if it finds one. To see if a message contains the word "happy," I'd use llSubStringIndex(llToLower(message), "happy") but how about a whole list of words I'm looking for?
  5. Hi. Sorry, I shouldn't have said the object is attached to me. Let's say that the object is on the ground. How can it know the distance between me and the person/object that just spoke?
  6. This is a script that will repeat anything that it hears in nearby chat within 20m to the owner. This script will be in an object within range of a few people. If I'm already in range of the person who sent the chat, it will repeat it to me twice, which is unfavourable. How do I detect if the person who sent the chat in nearby is already within 20 metres of the owner (me)? If I could add an if statement around the llOwnerSay() that only repeats a message when I'm out of the 20 m range of the avatar or object that sent it, that'd be great. integer nearby; default { state_entry() {
  7. I'm trying to get a boolean value for whether or not I am seated on an object not counting the ground.
  8. Here's an example of an avatar bumper sound script. Is there a way for it to only detect horizontal collisions such that if you tp on someone's head, it doesn't play. This is for people with tp sounds because one sound will interrupt the other. float volume = 1.0; //Volume 0.0 - 1.0; default { collision_start(integer num) { if(llDetectedType(0) & AGENT) { llStartAnimation("lulz"); llPlaySound(llGetInventoryName(INVENTORY_SOUND,llFloor(llFrand(llGetInventoryNumber(INVENTORY_SOUND)))),1.0); llSetTimerEvent(1.0); } }
  9. // Play a sound whenever the owner is walking integer gWasWalking; // TRUE when wearer is already walking string gSound = "Sleepwalk"; // name of soundfile in inventory default { state_entry() { // Start a timer to continuously check if the owner is walking llSetTimerEvent(0.25); } timer() { integer NowWalking = llGetAgentInfo(llGetOwner()) & AGENT_WALKING; if (NowWalking != gWasWalking) // walking has stopped or started { llStopSound(); if (NowWalking) llLoopSoun
  10. Below is a basic walker script that's been shared around. Whenever I teleport to a person or location, it starts playing. I want make sure that it can't play until (let's say) 5 seconds after every teleport. It's because I already have a teleport sound player, so I don't want them both playing at the same time. I've tried adding llSleep(), but that just causes it to play 5 seconds later, even though I'm not even walking by then. I just want it to act as if I didn't walk at all no matter what my avatar does during the 5 seconds after every teleport. string Snd = "Sleepwalk"; integer For = A
  11. I find that the walker scripts people are sharing around are too sensitive. You TP on someone's head and it starts playing, which isn't great for me because it already has a TP sound. I've tried adding llSleep() but that just causes the sound to come in late. I wanna prevent the following basic walker from playing unless I walk for 5 seconds. string Snd = "Sleepwalk"; integer For = AGENT_WALKING; default { state_entry() { llPreloadSound(Snd); state entry; } } state entry { state_entry() { llStopSound(); @D; if (llGetAgentInfo(llGe
  12. I'm looking to unseat everyone who sits on a particular object except for the first person to sit on it.
  • Create New...