|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
11-30-2008 18:27
Hi y'all...
I have that project going on that rezes objects and then positions them according to some web-data. Unfortunately, sometims the data get's lost (or whatever the reason is) and the rezed object ends up on my neighbours land. I built in a script command that should let the object die when it's not over my land anymore (if(!llOverMyLand()) llDie())... Problem seems to be: as soon as the object leaves my land, the script in it isn't allowed to run anymore (due to parcel-restrictions) so the llOverMyLand()-command doesn't work and the object doesn't die...
Any ideas how to let the object die even if the script doing it isn't running???
Thanks a ton for any hint!
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
11-30-2008 18:57
Just check to make sure the positions are within the boundaries of your land.
Haven't looked it up yet so there should be a better way but worst case scenario:
Do an if test position.x against boundary x floats && position.y between boundary y floats.
Should be someway to check against a bounding box which will be even easier.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
11-30-2008 21:39
You might wanna look at this function: llOverMyLand
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
|
11-30-2008 22:13
Very simple...
key owner_here = llList2Key(llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_OWNER]), 0); key owner_there = llList2Key(llGetParcelDetails(destination, [PARCEL_DETAILS_OWNER]), 0); if (owner_here != owner_there) { llDie(); } ...otherwise move to 'destination'
|