Jump to content

llRezObject getting error


Kethri
 Share

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

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

Recommended Posts

Hello,

Can anyone tell me why I get the script error "Could not find object"." with the following script? A prim named box is in the inventory of the prim with the script.

string box;
integer param;


default
{
    state_entry()
    {
        
    }

    touch_start(integer total_number)
    {
        llRezObject(box, <213, 10, 62>, <0,0,0>, ZERO_ROTATION, param);
    }
}
Link to comment
Share on other sites

This isn't what's causing the error, but you need to remember that this script will only work in very specific circumstances.

You've hard-coded a region position where you want "box" to rez: <213, 10, 62>.    That means it's only going to work if the rezzer is within 10 metres of that position.   Otherwise it will silently fail.

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3174 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...