Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

give a notecard by entry my land

elvis Woodget
Registered User
Join date: 2 Feb 2007
Posts: 5
03-27-2007 09:54
hi there,

i try to make a script what give a notecard to the users was entred my land, i try this with collision_start.

but if the user walk on this prim her will get mass on notecards from the script dont 1


can everybody help me ?
Ricky Lucero
Registered User
Join date: 25 Jul 2006
Posts: 122
03-27-2007 10:04
Every time someone moves around on a prim, more than one collision event happens. You needs to keep track of who you've given the notecard to, then when just about to send the notecard, check to see if that person has already bene sent the notecard.

You could also be doing this with a sensor rather than a collision event.
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
03-27-2007 10:56
If you change the prim to phantom and use llVolumeDetect(TRUE) it will only trigger one collision_start and one collision_end. You won't get the collision events in between though.
Useful if you only have one landing zone where you can place an invisible phantom wall which must be passed through to enter.
Dragon Keen
Registered User
Join date: 24 Apr 2006
Posts: 245
03-27-2007 11:53
try using llOverMyLand with a sensor, and a list for noting avatars already sent a notecard so they dont get spammed with every sensor call.... it would work very easily
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
03-27-2007 12:12
Would also be a lot more memory intensive and laggy than a phantom prim :p
Dragon Keen
Registered User
Join date: 24 Apr 2006
Posts: 245
03-27-2007 14:20
From: Sys Slade
Would also be a lot more memory intensive and laggy than a phantom prim :p


true, but a phantom prim cant necessarily catch all visitors, unless there is only one entry point
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
03-27-2007 15:34
Yep, a scanner would be better with multiple entry points.
Seidr Giha
Registered User
Join date: 21 Mar 2007
Posts: 8
03-28-2007 03:25
Check out the Visitor List script example at http://lsl.dimentox.com/snippet.php?sid=3. With a little modification it should be able to serve your needs :)
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
03-28-2007 09:50
Fair enough sensors are needed sometimes, but listening on channel 0 is never needed.
That script is parsing everything the owner says in world for 3 things, it'd be much better put on a different channel.

Also, if it's listening just for the owner to request help etc, why does it then proceed to spam up the main chat channel with that help? llOwnerSay is designed for this kind of thing.

My final gripe with that script, sensors don't use TWO_PI to scan in a complete sphere.
From: someone
If arc is x radians, the sensor will look for x radians around the object's forward vector (which is the object's local X axis, positive direction), so the actual sweep of the search is 2 * x radians, and thus PI radians will search all around the object.