Kethri Posted September 13, 2015 Share Posted September 13, 2015 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 More sharing options...
arton Rotaru Posted September 13, 2015 Share Posted September 13, 2015 the string variable has to look like this: string box = "box"; Also make sure your rezzer isn't more than 10 meters away from the rez position, or the function will silently fail. Link to comment Share on other sites More sharing options...
Kethri Posted September 13, 2015 Author Share Posted September 13, 2015 Thank you Link to comment Share on other sites More sharing options...
Innula Zenovka Posted September 13, 2015 Share Posted September 13, 2015 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 More sharing options...
Recommended Posts
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