Jump to content

ZachMatheson

Resident
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ZachMatheson

  • Rank
    Newbie
  1. Hi Qie, Yes, it has a default location "spawnPos" which my object moves to by default which keeps an anchor center point then it moves between -1.0 to 1.0m metres on X. I will re-evaluate my Frand call, cheers.
  2. Hi Team, Below is the code I am trying to run in order to move an item between -1.0 and 1.0 metre on the X axis. I have tried many methods with this being my final shot. when the object teleports it is not behaving. state invisible { state_entry() { vector currentPos = llGetLocalPos(); integer teleportRandomX = (integer)((integer)llFrand(1.0 + -1.0)); integer teleportRandomY = (integer)((integer)llFrand(1.0 + -1.0)); if (currentPos != spawnPos) { llSetPos(spawnPos); llSetPos(llGetPos()+<teleportRandomX,0,0>); llSay(0,(string)llGetPos()); } else { llSetPos(llGetPos()+<teleportRandomX,0,0>); llSay(0,(string)llGetPos()); } }For instance my last try it started at <96.10229, 183.59870, 20.46061> and moved to <91.48725, 174.78190, 20.36469> which is not just -1.0 to 1.0 on the X-axis but the Y-axis is being manipulated to - just not by me. Is there anything I should be looking for?
  3. Thanks all, I ended up writing more or less what Innula (and others) suggested. Cheers!
  4. Hi Team, I wonder if someone could point me in the right direction here. I have an object that avatars are supposed to attach to their skull. If they attach multiple of these objects across their body, what is the easiest way for me to detect the extra objects so I can call a llDetachFromAvatar to remove them?
×
×
  • Create New...