Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

how to contact a vehical after you lost it

RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
11-01-2004 08:35
ok I recently found out that a vehical will continue to animate you if its in the same simm with you after youv'e somehow become dislodged from it. Someone I know was riding one of my vehicals when the sim went down on an island simm and for almost a week was in the surfing stance when ever they went to that island simm, but were ok everywhere else they finally tracked down the vehical and deleted it and then they were ok.

I know how to get the vehical to send an IM to the owner and say where its at. Anoying.What I'd rather do is send an IM to the vehical to die, So finding it is unnessesary since my vehicals make copies everytime you pull one out anyway

Ok heres my question. whats the command to IM a lost vehical? Anyone?
also I'd like to add a function to update my carrages when the newer versions come out too. but I'll probably figure that out on my own soon.
Also sure would be cool if the vehical could tp you back inside after you've been seperated that would sove a lot of problems.
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
11-01-2004 08:44
You can't send an IM to a prim, but you can use a linked message to accomodate the same thing. Perhaps what you need is a set of "keys" (really just a prim) that can turn off (tell the vehicle to llDie())???

I'm not in a position to write you any code at the moment, but since the vehicle has a "create when needed" property, how about a button that is like a remote that says "ciao baby".

What I don't know (among the many other things) is what the distance limitations are on the message link function.

Sorry there is no code here to back that up, but there's an idea anyway.
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Water Rogers
Registered User
Join date: 1 May 2003
Posts: 286
11-01-2004 11:40
From: Samhain Broom
What I don't know (among the many other things) is what the distance limitations are on the message link function.


Link Messaging is limited to linked prims. That's what makes it so secure. If you have a bunch of prims linked together, then the best alternative for them to communicate with eachother is to use link messaging... but if prims are not linked together, and you try to use this method - nothing will happen.

CODE
Ok heres my question. whats the command to IM a lost vehical? 


You can't Instant Message a prim or object. The direction that you want to take here is RPC-XML You'd have to create an external tracking system database for your vehicles that's completely automated... then allow a user to log onto a special webpage to check the status of their vehicle and perhaps offer options, like "Owner Name: / Current Location: / (destroy)" The destroy can be a link that would send a message to the vehicle. At that point, the vehicle could send a message to the user letting them know that it successfully killed itself before the llDie() command. This can be tiresome process if you don't know much about coding outside of LSL and if you don't have webspace. Check around these boards for more information on RPC-XML and webspace - there's a bunch of topics on that. At anyrate.... what you want to accomplish cannot be done with LSL alone.

--Water
_____________________
From: Philip Linden

For the more technically minded - the problem is actually NOT the asset server (or 'asshat' as you prefer to affectionately call it herein).
Konigmann Lippmann
Registered User
Join date: 15 Jun 2004
Posts: 40
Email an Object
11-07-2004 20:27
You can send an email to an object, but you need it's key to know where to send it, so if you're thinking of this after you lost an object, you're out of luck.

CODE
llEmail( (string)kObjectToControl + "@lsl.secondlife.com", "Lost", "" );


The lost object will need to contain a script with this event handler:

CODE
email( string sTime, string sAddress, string sSubject, string sMessage, integer iRemaining )
{
if( sSubject == "Lost" )
ReportPosition();
if( iRemaining )
llGetNextEmail( "", "" );
}


then you could have a function like this:

CODE
ReportPosition()
{
vector vPosition = llGetPos();

llInstantMessage( llGetOwner(),
"Your object '" + llGetObjectName() + "' is located at " +
llGetRegionName() + "(" + (string)llRound(vPosition.x) + "," +
(string)llRound(vPosition.y) + ") at an altitude of " +
(string)llRound(vPosition.z) + " meters" );
}


While this would do the job, still the trick is that you have to get the key before the item is lost... I suppose you could make records of all your items, but that seems prohibitive to me.

The XML RPC solution might still make a more elegant answer, but I'd think that would only be if you wanted to set-up a LoJack-like service... Hm... idea there, sell the script, customers drop it into their vehicles, and call you when they get lost. Or you build a self-service unit for them to do their own tracking... could be cool.