Jump to content

Myth024

Resident
  • Posts

    4
  • Joined

  • Last visited

Reputation

1 Neutral

Recent Profile Visitors

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

  1. .. and that's what I get for not paying attention to dates but still wondering if there is a solution.
  2. I'm still kind of new to scripting but could you have some kind of button to click that starts the media. Then, could you have some kind of system that an avatar would click a button to start the media but would "hold" that command till others had clicked a start button. Then when everyone has clicked once, you hit a submit button and it kind of "releases" those requests at the same time. It wouldn't keep it perfectly synch'd but if you are all watching a video it could get it starting at the same time. Unless there is a way that one person can hit a start button and it tells everyone else's to start at the same time. There might be a way to use CHANGED_MEDIA to detect when the media loads on one for an avatar and then automatically start on the other. Or you could use some kind of trigger to "start" the media simultaneously on two different prim faces. I guess on the really complex side, if you had access to a web server, you might be able to do some kind of cross between php and LSL. In either case, streams would have to be triggered by some kind of event and if you could get that event to trigger on both two different prim faces, that would get you halfway there.
  3. To be sure I understand what your telling me. I can't run any functions outside of a state and therefore can only call them inside one. So here is another question. If I declare a variable inside the default state, can I still referr to the variable inside other states? So if I say, for example, default { state_entry { gPosition = llGetPos(); } state one } state one { state_entry { bunch of stuff that moves the object to some random place. } state reset_pos } state reset_pos { state_entry { llSetPos(gPostion); } state default } Now I know the syntax may not be perfect, I just popped that down off the top of my head. In theory, when the objected is rezzed it would get it's position, then when moving on to the reset_pos state, it would go back to that same position. then the script would start over. Thus the object would always return to the original spot it was "dropped". Am I following that correctly or am I missing something? Thanks for your responses they have already helped.
  4. I have an object that has a certain type of physics that means that object can be kicked into random places. I would like to have it return to the orginal place it was dropped when touched. I'm guessing that I would have to generate a global variable that "records" it's start position, then recall it later in when touched. I've tried vector position = llGetPos(); before the default state to set it as a global variable however, I get the following error. An object reference is required for the nonstatic field, method, or property 'llGetPos()' If someone has an idea of how to set a global variable that holds the position, I think I can figure out the rest. Originally I tried to have two linked objects so I could have the physics enabled object inside a box but both objects kept running the same script and defeating the purpose of containing a moving object inside a non moving object. Oh, yea, I'm really new to LSL scripting so yea, I'm a noob, but I've been trying to find the answer through documentation and this forum is my next shot. Thanks for your help.
×
×
  • Create New...