Tyrannosaurus Alpha
Resident-
Posts
54 -
Joined
-
Last visited
Reputation
0 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I've been working on a script to detect agents under a certain age, after a while the script would no longer detect these agents, resetting the script and rezzing a new object with a new instance of the script doesn't help. Is there some sort of cap to the amount of dataserver requests that can be sent in an hour or so?
-
Calculating the height of an avatar?
Tyrannosaurus Alpha replied to Tyrannosaurus Alpha's topic in LSL Scripting
I was given this but it is still failing to set the position... vector agent_size = llGetAgentSize(llDetectedKey(0)); vector pos = llDetectedPos(0); vector object_size = llGetScale(); float foot_bottom = -1*((agent_size.z*1.1)/2);//distance from agent centre to bottom of feet //works for most avatars, believe it or not float my_hight = object_size.z/2; llSetPos(<pos.x,pos.y,((pos.z+foot_bottom)-my_hight)>); -
Calculating the height of an avatar?
Tyrannosaurus Alpha replied to Tyrannosaurus Alpha's topic in LSL Scripting
Thanks -
I was trying to move an object directly under the owner by taking away the height of the owner on the z axis from the owners z position, like this: llSetLinkPrimitiveParamsFast(LINK_SET,[PRIM_POSITION, <x, y, z> + <0, 0, - ownerheight>]); But there was a big gap..
-
default { state_entry() { llListen(101, "", NULL_KEY, ""); } listen( integer channel, string name, key id, string message ) { key ownerid; string ownername; ownerid = llGetOwnerKey(id); // the the owner of the chatting objects ownername = llKey2Name(ownerid); llOwnerSay((string)ownername + " says: " + (string) message); llPlaySound("Walkie",1.0); } } This is the script that deals with messages recived from other walkie talkies. But for some reason It tells me the name of the other person