Jump to content

Pixellada

Resident
  • Posts

    23
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

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

  1. Here some statistics: http://vwbpe.org/blog/vwbpe-by-the-numbers Here are some more recorded meetings:
  2. VWBPE 2014 has finished. Check the www.vwbpe.org webiste for news about VWBPE 2015. If you missed it you can watch lectures, for example Philip's and Ebbe's keynotes:
  3. Thank you. I didn't know proportional editing is applied also to uv map. Problem solved.
  4. Hi I would like to find out what can be the reason of my problem with uv map. The seams are set but when I try to move parts of uv map they seems to be connected.
  5. default{ touch_start(integer total_number) { rotation rot = llDetectedRot(0); vector pos = llDetectedPos(0)+<0.5,0.0,0.0>*rot; if(llVecDist(pos,llGetPos())>10.0){ //out of range } llRegionSayTo(llDetectedKey(0),0,"Please move to within 10 meters of the rezzer"); return; } else{ llRezAtRoot(llGetInventoryName(INVENTORY_OBJECT,0),pos,ZERO_VECTOR,llEuler2Rot(<0,0,270>*DEG_TO_RAD)*rot,1); } }} Syntax error at else
  6. if(llVecDist(pos,llGetPos()>10.0))//out of range to rez { Error appearns herer: Type mismatch
  7. Script for additional object: default{ touch_start(integer param) { integer i;for(i = 0; i < llGetInventoryNumber(INVENTORY_OBJECT); i++) llRezObject(llGetInventoryName(INVENTORY_OBJECT, i), llGetPos() + <-1,0.0,-1>, <0.0,0.0,0.0>, llGetRot()*llEuler2Rot(<0,0,270>*DEG_TO_RAD), 1); }} I understand that there should be added but I am not sure how: - finding a position of avatar that touches the object in say range (probably llDetectPos) - calculation of the coordinates for rezzed object additionaly
  8. One more question. What function should be added to rezz the object 0,5 m from avatar?
  9. Thank you. What scripts are needed if the note card with keys is not in the same prim as script just in other linked prim?
  10. Thank you for answer. Concerning 1 - is that correct? Listening script default{ state_entry() { llListen(2, "", llGetOwner(), ""); } listen(integer channel, string name, key id, string msg) { if (channel == 2) llSetTexture(msg, ALL_SIDES ); } } Do I need to add llOwnerSay to hud script? string texture1 = "d1ccf901-14e1-e78f-52d6-d6d0beyyyxxx";string texture2 = "dndfdsnf-14e1-e78f-52d6-d6d0beyyyxxx";default{ state_entry() { llSetTexture(texture1, ALL_SIDES); } touch_start(integer total_number){ llOwnerSay(2,texture2); }}
  11. Hi I have two scripts one for hud that changes the texture: string texture1 = "d1ccf901-14e1-e78f-52d6-d6d0beyyyxxx"; string texture2 = "dndfdsnf-14e1-e78f-52d6-d6d0beyyyxxx"; default { state_entry() { llSetTexture(texture1, ALL_SIDES); } touch_start(integer total_number) { llSay(2,texture2); } } and one for object that receive the information about texture key and changes thexture of the object: default { state_entry() { llListen(2, "", NULL_KEY, ""); } listen(integer channel, string name, key id, string msg) { if (channel == 2) llSetTexture(msg, ALL_SIDES ); } } Of course channel 2 is not recomended - that is example only. I would like to: 1. make the object to listen only what owner of hud says 2. intruduce note card that includes key of textures - the script in hud can read keys from note card 3. the script in hud chooses the note card with the same name as object in which that script is (if script is on object named "1" it chooses note card name "1".
  12. After some more testing in Miranda's exaple appeared such event - when object is left and not taken (with detach option not llDie()) it stays and sends this message: Script trying to detach from agent but PERMISSION_ATTACH permission not set! Edit Innula - after testing your idea the script works perfectly. Thank you
  13. 1 & 2 works 3 Object disapear when detach fuction is used. llDie() didn't work. Thank you very much for fast and helpful answer.
  14. Hi I would like to try what can be done with new llAttachToAvatarTemp. I would like to use script displayed below and add some more functions: default { touch_start(integer num_touches) { llRequestPermissions( llDetectedKey(0), PERMISSION_ATTACH ); } run_time_permissions( integer vBitPermissions ) { if( vBitPermissions & PERMISSION_ATTACH ) { llAttachToAvatarTemp( ATTACH_LHAND ); } else { llOwnerSay( "Permission to attach denied" ); } } on_rez(integer rez) { if(!llGetAttached()) { //reset the script if it's not attached. llResetScript(); } } }1. After rezzing the object - if the object is not touched during 5 seconds it dissapears 2. Object dissapears when permission is denied 3. Objects dissapears after 60 seconds if it is worn. (The question is if worn rigged mesh can dissapear?) I was trying to implement llDie(), llSetTimerEvent() but as beginner I need some help. Additionaly I read about the need of llSleep implementation: http://community.secondlife.com/t5/LSL-Scripting/llAttachToAvatarTemp-caveats/td-p/1645441 so I wonder if I need to add it and where.
×
×
  • Create New...