Jump to content

EniarTenokei

Resident
  • Content Count

    26
  • Joined

  • Last visited

Community Reputation

1 Neutral

About EniarTenokei

  • Rank
    Member

Recent Profile Visitors

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

  1. Thank you for your answer. I now know how to use it properly.
  2. http://wiki.secondlife.com/wiki/WrapText How would I go about using this code to wrap text?
  3. I want to make an RC Helicopter cam follower where I can click the hud on or off and the cam will follow the vehicle. What would the scripts, the one for the vehicle and the one for the hud, consist of?
  4. So how could I use llCastRay(); to not shoot the wing or other parts of my ship that isn't the root prim when firing at a selected target?
  5. if( llGetOwnerKey(llList2Key(hit, 0)) == llGetOwner() ) { return; // Exit the current function/event to stop shooting. } And this code means don't shoot the owner, right?
  6. Is this the code I would use if I don't want the turret to shoot the wing of my ship which isn't the root prim? if( llGetObjectDetails(llList2Key(hit, 0), [OBJECT_GROUP]) == group_key_to_ignore ) { return; // Exit the current function/event to stop shooting. }
  7. I'm probably creating more work for myself that I don't really need to be trying to add more dialogs to this turret script so I've decided not to. Thanks for your help everyone!
  8. How should I define avatarsNames here? Here's the script I'm working on: string mainMenuDialog = "\nWhich settings would you like to access?\nClick \"Close\" to close the menu.\n\nYou are here:\nMainmenu"; list mainMenuButtons = ["Select Avatar", "Cease Fire", "Close"]; string subMenu_01_Dialog = "\nClick \"Close\" to close the menu.\nClick \"-Main-\" to return to the main menu.\n\nYou are here:\nMainmenu > sub 01"; list subMenu_01_Buttons = [ "Close", "-Main-"]; string subMenu_02_Dialog = "\nClick \"Close\" to close the menu.\nClick \"-Main-\" to return to
  9. I'm trying to get the select avatars dialog to open but can't get it to work. I put more dialog windows on the turret script once I got the timer to work. So, what should I do to get the select avatars button to detect the avatars? Here's the script I'm working on: //menu listener integer listener; integer sensorChannel; // sensor list avatarsKeys; list avatarsNames; string mainMenuDialog = "\nWhich settings would you like to access?\nClick \"Close\" to close the menu.\n\nYou are here:\nMainmenu"; list mainMenuButtons = ["Select Avatars", "Cease Fire", "Clos
  10. Can I have more than 1 timer() function in one script?
  11. I don't think I would've ever figured that order out seeing that I've never done a lot of LSL scripting before. How does the process work for creating any type of script? The only answer I can think of is this: Learn the broad concepts instead of focusing on one specific thing, like you said, after I study all the functions, reverse engineer a lot of scripts, and the basic syntax then after enough experience and mistakes that take roughly 2 years then it will just start to click. Is that how it's done or am I missing something? You said you don't gain anything by looking up the ans
  12. With this example I came up with this: However, I still need the timer function to work. key kTarget; key kLookUpKey(integer n){ key k = llList2Key(lDetected,n); return k; } list lDetected; integer iFire; //menu listener integer listener; integer sensorChannel; // sensor list avatarsKeys; list avatarsNames; menu(key user,integer channel,string title,list buttons) { listener = llListen(channel,"","",""); llDialog(user,title,buttons,channel); //remove listener if there's no activity in menu llSetTime
  13. So I made kTarget global variable, and took out the if message, so how do I get the llSetTimer(); Switch to work? I'm not familiar with this method. //menu listener integer listener; integer sensorChannel; // sensor list avatarsKeys; list avatarsNames; integer kTarget; menu(key user,integer channel,string title,list buttons) { listener = llListen(channel,"","",""); llDialog(user,title,buttons,channel); //remove listener if there's no activity in menu llSetTimerEvent(20.0); } integer randomNumber() { return (in
×
×
  • Create New...