public void SetEntityPosition(uint localID, float x, float y, float z)
 {
     foreach (Entity entity in this.Entities.Values)
     {
         if (entity.localid == localID && entity is Primitive)
         {
             LLVector3 pos = entity.Pos;
             pos.X = x;
             pos.Y = y;
             Primitive prim = entity as Primitive;
             // Of course, we really should have asked the physEngine if this is possible, and if not, returned false.
             prim.UpdatePosition(pos);
             // Console.WriteLine("script- setting entity " + localID + " positon");
         }
     }
 }