TXGorilla Falcone
KWKAT Planetfurry DJ
Join date: 4 May 2004
Posts: 176
|
04-07-2005 15:29
Is there any way to make like a leash script? leme explane it kinda... have a script in a prim that you can eather wear or just place that can hold sumone at a givin distance and not allow one to go further than that distance but can still walk arround in the area and fly within given area
to make this sumthing alloud have the script ask the AV being leased if he/she wants to be leashed... I have seen a similar script used but that wasent the desired effect and required the script be used in mouse mode.
have a command system sumthing like
/1 leash <AV Name> /1 slack <ammount> /1 unleash <AV Name> (for owner/group) unleash (ability to unleash the one speaking)
_____________________
Drunken Monkeys danceing on the tables. Falling from the sky just like in a fable.
|
Vincent Nyak
Unregistered Bruiser
Join date: 28 Jan 2005
Posts: 34
|
04-07-2005 15:49
I assume this leash is for friendly, fun, furry, pet roleplay and not involved in anything D&S like right  ok, joke over, i assume its a pretty easy script but im not fantastic at this sorta scripting, never did get conditional follwers
|
TXGorilla Falcone
KWKAT Planetfurry DJ
Join date: 4 May 2004
Posts: 176
|
04-07-2005 16:31
well the only reason I stated it ask is so lindens dont concider a trap but if ya can make it without it asking thats ok to 
_____________________
Drunken Monkeys danceing on the tables. Falling from the sky just like in a fable.
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
04-07-2005 23:33
This thread about followers is the basis of such a script, plus the tips to make it work properly. What it won't do is generate a visible leash, but there are ways you can do that too, and it needs some packing - listeners or similar to let you use it. Because it must be attached to the person it is going to leash there is no need to ask permission, if the person objects to being leashed they can take the object off after all. If you want a physics free prim object to follow you the script as it stands will do that just fine. I think I've still got the final version of the fully functioning script if you'd rather buy that off me in world sometime.
|
TXGorilla Falcone
KWKAT Planetfurry DJ
Join date: 4 May 2004
Posts: 176
|
04-08-2005 17:05
Follower scripts are all good and well but it soesnt allow one to still be able to walk arround if on the leash so to speak
_____________________
Drunken Monkeys danceing on the tables. Falling from the sky just like in a fable.
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
04-08-2005 17:32
While I will say nothing about how I feel about the implications of this little item, a simple question is a simple question. This should give you a "leash" with distance given: float distance = 10; // Distance in meters key avatar = ""; // Avatar key here string name = ""; // ... or avatar name here float time = 2; // Time between checks
default { state_entry() { llSensorRepeat(name, avatar, AGENT, 50, TWO_PI, time); // Fire up the sensor }
sensor(integer total_number) { vector holder = llDetectedPos(0); // Agent bound to the script if(llVecMag(llGetPos() - holder) > distance) { llMoveToTarget(holder + (distance * llVecNorm(llGetPos() - holder)),0.3); llSleep(time / 4.0); llStopMoveToTarget(); } } } And, uhh... please don't tell me what this is ultimately used for. I just don't want to know. 
_____________________
---
|
TXGorilla Falcone
KWKAT Planetfurry DJ
Join date: 4 May 2004
Posts: 176
|
04-08-2005 17:50
Ohh its quite usefull is some superships Cence Superships dont use physics to move AV's tend to skip thru the wall when they move if they are standing... What the implaments of this is that it will possably tow the AVs that wana ride but refuse to sit or there isent any seating left... anyway if this plan doesnt work I can always find "SOME" use for it btw thank you edit: and I wont be able to test till monday when I get back home
_____________________
Drunken Monkeys danceing on the tables. Falling from the sky just like in a fable.
|