Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
06-23-2003 22:50
Heres a little thing I rigged up while thinking about Ope's predicament (in General Discussion forms). integer gCount; integer gDieAt = 999; //tunable float gInterval = 10; //seconds (also tunable)
default { state_entry() { llSetTimerEvent(gInterval); } timer() { if(llGetLandOwnerAt(llGetPos()) == NULL_KEY) { if(gCount >= gDieAt) llDie(); gCount ++; } else { gCount = 0; } } }
This code will check every ten seconds what the land owner is at the current object's position. If the land is public (land owner = NULL_KEY), it adds one to count. If it isnt, it resets the count (just incase the object is a vehicle that just moved over some public land that one instance.) created by christopher omega EDIT: Xerahn VonLenard, ty so much... Adding >= to the if(gCount >= gDieAt) is definately more stable then if(gCount == gDieAt)... just in case the sim hiccups. Ty so much for the input.
|
Xerahn VonLenard
Registered User
Join date: 26 May 2003
Posts: 7
|
Discussion Thread
07-01-2003 11:17
|
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
|
Discussion Thread:
04-25-2005 09:18
_____________________
i've got nothing. 
|
Francis Chung
This sentence no verb.
Join date: 22 Sep 2003
Posts: 918
|
04-27-2005 05:28
LOL Is it really necessary to bump every single obsolete thread from the library, Nada? I think the last time I ever saw public land WAS in 2003 
_____________________
-- ~If you lived here, you would be home by now~
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
05-09-2005 07:32
I am renting land from an absent landlord so when some noob drops a mack truck on the property it's there till I get him to come back and move it. Wish I'd had him make me an administrator before he disapeard. I just built a new elevated deck on my pier to make a path over the latest 12 seater monstrosity. ______________________ Wish we had a script in every huge vehicle that would check maybe once a day to see if it's on someone else's property. Then have it die if its been there a day. Of course it would only be good for a copyable vehicle but still would be a good script for all vehicle makers to toss in. Even better than the lost come get me once a day. Most noobs need a carrot on a string in front of them to find there way back to a specific place.
|