Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Getting pets onto non building areas

Dan Colville
Registered User
Join date: 28 Jul 2006
Posts: 26
09-21-2008 03:52
Ok so i got a pet script
vector offset =<-1,0,1>;

startup()
{
vector pos = llGetPos();
llSetStatus(STATUS_ROTATE_Z,TRUE);
llSetStatus(STATUS_PHYSICS, TRUE);
key id = llGetOwner();
llSensorRemove();
llSensorRepeat("",llGetOwner(),AGENT,200,2*PI,.5);
}

default
{
state_entry()
{
startup();


}

on_rez(integer start_param)
{
startup();
}

sensor(integer total_number)
{
vector pos = llDetectedPos(0);
llMoveToTarget(pos+offset*llDetectedRot(0),.3);
llLookAt(pos, .1 , 1);
}
}

But when ever i try and go into a place where your not allowed to build it comes up with a message saying i can move there.

What can i do to solve this problem. i have added that script to a pixar eve that i build as a pet. is there anything i can to so that the pet can move around in the no build maps?
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-21-2008 06:08
only if you walk into the area, and they allow object entry. otherwise it would have to be an attachment
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369