Jump to content

Get autoreturn time


animats
 Share

You are about to reply to a thread that has been inactive for 2232 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

There's no LSL function to obtain parcel autoreturn time, is there?

llGetParcelFlags will give you the flags to tell if you can enter, but llGetParcelDetails does not have an option for autoreturn time.

I'd like to put a feature in vehicles so that when you park them on a place that might autoreturn them, it tells you how much time you have left, and IMs you with a reminder as the autoreturn time approaches.

Edited by animats
More info.
Link to comment
Share on other sites

Yeah, it would need to be a new attribute returned by llGetParcelDetails() -- which should be a short job for an intern to model after any of the existing attributes. (It's not a binary, so not appropriate for llGetParcelFlags().)

There's no reason such a feature would need to add noticeably to script time -- it's a one-time call and a long interval, fire-once timer when the vehicle stops; only a few simple lines of script and maybe a state variable, so negligible increase in memory, too.

  • Like 2
Link to comment
Share on other sites

19 hours ago, Rachel1206 said:

An extension to llGetParcelFlags() with parcel return time would be nice.

 

I really doubt llGetParcelFlags would ever be expanded in this way.
It is a bitfield function for flags, as in it compares the individual bits (on/off flags) of a whole integer.
Parcel Auto Return is not a flag and it can cover any number of bits, so it's incompatible with the function.

Simplest solution is to just create a new function.
The most logical solution is to extend llGetParcelDetails instead.

(That might sound nit-picky but my goal is to be informative.)

Edited by Wulfie Reanimator
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2232 days.

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
 Share

×
×
  • Create New...