Jump to content

Can anyone help I'm really stuck


Cat Tamatzui
 Share

You are about to reply to a thread that has been inactive for 1821 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi I have a hud that when clicked it sends a message llRegionSay(99,"Send Prize");

and I have a box with a prize in it with this script inside

integer listenHandle;
integer chan = 99;
default
{
  state_entry()
  {
      listenHandle = llListen(chan, "", NULL_KEY, "");
//llSay(0, "Listening on channel " + chan);
  }
    listen(integer chan, string name, key id, string msg)
   {        
            if(msg=="Send Prize")
          {
llGiveInventory(id,llGetInventoryName(INVENTORY_OBJECT, 0) ); 

//llSetColor(<0.5, 0.0, 0.0>, ALL_SIDES ); //used to check if it receiving the command
}
}
}

 

the prize is no copy but it sends the prize to the hud so the prize is in the huds content which them means that they would have to detach the hud rez it and unpack it to get the prize out, how do I get it to send to the persons inventory and not the hud the person is wearing, any help is much appreciated.

Thanks 

Cat =^.^=

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1821 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...