|
PhoenixRene Ashbourne
Script Novice
Join date: 19 Feb 2008
Posts: 9
|
11-01-2008 11:16
Can anyone direct me to a place where I can find a script I can put in a pet to make it wander around on my property?
|
|
Virrginia Tombola
Equestrienne
Join date: 10 Nov 2006
Posts: 938
|
11-01-2008 13:07
Here is a "hopping pet script" that might work for your purposes. /54/cd/191407/1.html
_____________________
Horses, Carriages, Modern and Historical Riding apparel. Ride a demo horse, play whist, or just loiter. I'm fair used to loiterers. http://slurl.com/secondlife/Caledon%20Eyre/48%20/183/23/
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-02-2008 01:51
something like this? @wander //-- face in a random direction, on a flat surface llSetRot( llEuler2Rot( <0.0, 0.0, llFrand( PI )> ) * llGetRot() ); //-- find the point we're moving to (1m +x in this case) vector vPosTarget = llGetPos() + <1.0, 0.0, 0.0> * llGetRot(); //-- check to make sure that the new pos is inside our property line if (llGetOwner() == llGetLandOwnerAt( vPosTarget ) ){ //-- go to new position llSetPos( vPosTarget ); //-- oops, out of bounds }else{ //-- pick a new direction so we don't spend a lot of time at the border jump wander; }
you could change the direction to be more friendly to shaped terrain (via llGround possibly), you could change the way you move to be more fluid (llMoveToTarget perhaps), and you could change how you define and check for bounds (edge of world, distance from a reference point, various limits), and of course it should go in a timer loop most likely
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Wyld Magic
Registered User
Join date: 16 Jun 2008
Posts: 1
|
11-02-2008 12:03
I'll try these out too.
|