Jump to content

Mo Lyle

Resident
  • Posts

    7
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

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

  1. Hello - I'm looking for a scripter that can complete a scripting project for me. It's mostly complete but it's taken me forever to do myself. IM me in-world for details and we'll discuss!
  2. Allrighty, and If I wanted anyone to be able to use these and not just the owner, I just do not use the little LLDetectedKey statement?
  3. Hey thanks! A step in the right direction for the script. Question though: how is the Object C position being passed through an avatar key? That's the part that's confusing me. I shouldve added this little tidbit of info last night though: Is it possible to code something like this to where the names of A and C could be different? Background on the product: Im trying to create a meal system where object A is, let's say a pot of soup, and when clicked, the pot would rez a plate with the bowl of soup (object B) on top of the selected placemat (object C) Now, the idea is that the Object C's would be constant (though they could have different names based on the design on them), but if the user purchases a different meal, say cheeseburgers, that the cheeseburger meal would rez a plate of cheeseburger on the placemat. I've added what Code I have below if someone could help Meal - list mainmenu = ["Clear Plates", "Serve Meal"];key user;integer channel;integer listen_handle;string platename;vector matposition;vector rezPos;vector rezVel;rotation rezRot;vector posoffset = <0.000503,0.000870,0.013415>;vector veloffset = <0,0,0>;rotation rotoffset;default{ state_entry() { channel = 3635; platename = llGetInventoryName(INVENTORY_OBJECT, 0); } touch_start(integer total_number) { user = llDetectedKey(0); llDialog(user, "What would you like to do?", mainmenu, channel); listen_handle = llListen(channel, "", user, ""); llSetTimerEvent(30.0); } listen(integer channel, string name, key id, string message) { if (message == "Clear Plates") { llWhisper(channel, "reset"); return; } else if (message == "matposition") { return; } else if (message == "Serve Meal") { vector xyz_angles = <90.0,90.0,0>; // This is to define a degree change vector angles_in_radians = xyz_angles*DEG_TO_RAD; // Change to Radians rotoffset = llEuler2Rot(angles_in_radians); // Change to a Rotation vector rezVel = veloffset*llGetRot(); rotation rezRot = rotoffset*llGetRot(); vector rezPos = matposition; llWhisper(channel, "reset"); llRezAtRoot(platename, rezPos, ZERO_VECTOR, rezRot, channel); //rez plate at placemat's position return; } else { return; } } timer() { llListenRemove(listen_handle); }} Placemat - integer chan;vector matpostion;default{ on_rez(integer chan) { chan = 3635; llListen(chan, "","",""); } listen(integer chan, string name, key id, string str) { if(str == "reset") { llDie(); } else if(str == "Serve Meal") { vector mat = llGetPos(); llWhisper(chan, (string)mat); } }}
  4. Thanks in advance for any help, I need some help with a project I'm working on, here's where I'm stuck at: I have a base object (A) that is going to be set in world, and has an object within it's content (B) that I need to rez on top of another nearby object (C). The rezzing of B happens through a menu script in A. My question is, how do I get the C object to report to A where it's position is, so that B can get rezzed on top of C? Because there would be multiple C objects, the user would need to click the A menu to say that they want to rez the B object, and then touch select which C object they want B on. So I need some kind of LSL code that would talk to C, and have C report it's in world position back to A so A can rez it's inventory on C. I'd appreciate any help, and definatley ask if you have any question, I'm sure I havent typed this our in the best way after working on scripts all night xD
×
×
  • Create New...