Jump to content

cansun95

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

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

  1. Thank you for your reply. Sorry about the code i didn't dee the add code button. Is this better default { state_entry() { llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); // get permission to take controls } run_time_permissions(integer perm) { // permissions dialog answered if (perm & PERMISSION_TAKE_CONTROLS) { // we got a yes llTakeControls(CONTROL_UP | CONTROL_DOWN, TRUE, FALSE); // take up and down controls } } control(key id, integer held, integer change) { // something happened to one of our controls if (held & CONTROL_UP) { integer link = 1; llSetPrimitiveParams(link[PRIM_SIZE, <0.0,0.0,1.0>]); } else if (change & held & CONTROL_DOWN) { integer link = 1; llSetPrimitiveParams(link[PRIM_SIZE, <0.0,0.0,7.0>]); } } }
  2. I need a fishing line to move up and down when i press the up and down keys. The line going down is the root prim so all you need to do is make that prim longer or shorter depending when you press up or down. Here is the lsl I have attempted to do but is full of bugs. default { state_entry() { llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); // get permission to take controls } run_time_permissions(integer perm) { // permissions dialog answered if (perm & PERMISSION_TAKE_CONTROLS) { // we got a yes llTakeControls(CONTROL_UP | CONTROL_DOWN, TRUE, FALSE); // take up and down controls } } control(key id, integer held, integer change) { // something happened to one of our controls if (held & CONTROL_UP) { touch_start(integer num_detected) { state blue; } } else if (change & held & CONTROL_DOWN) { touch_start(integer num_detected) { state blue; } } } } state up { touch_start(integer total_number) { integer link = 1; llSetPrimitiveParams(link[ PRIM_SIZE, <0.0,0.0,1.0>]); } } state down { touch_start(integer total_number) { integer link = 1; llSetPrimitiveParams(link[ PRIM_SIZE, <0.0,0.0,7.0>]); } }
×
×
  • Create New...