Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

question have someone a idea how to do this?

Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
11-02-2007 15:09
Hi everybody,

I have made a security script. The script works with a notecard with names
and the collision event. when someone hit/walk over the prim he/she will be
ejected from the land and banned for 1 hour.

the script works fine but the person who hit/walk over the prim will be ejected
without a warning. Thats not very polite :)))

Do someone know how i can warn that person without using a sensor?

I want to make this script so less laggy as possible and didn't use
listeners, timers or sensors.

Thanks,

Kaylan
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
11-02-2007 16:03
Well, firing off one sensor event to get the Avatar's key upon collision isn't very laggy. If the sensor was constantly running, and in a very busy sim, that would be laggy. Don't be afraid to use a sensor. :)
_____________________
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
11-02-2007 16:24
one sensor event isn't a problem but for detecting a avatar so i can warn him/her
not to come closer else he/she get ejected i think i need a repeating sensor.

if he hits collision event it to late than he already get ejected.

or do i miss something?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-02-2007 17:47
instead of immediately ejecting them, maybe give a warning, set a 15 sec timer (that shuts itself off after), then a single sensor and if they are still there, bounce them
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
11-04-2007 03:22
Hi,

I like the idea with a single sensor but i have a question about it.

In the Collision Event i place a timer for 10 seconds
In the Timer event i place the single sensor with detectedKey.
In the Sensor event i place the eject code.

What will happen if person 1 start the Collision and in less than
10 seconds a second person start the Collision event?

Will the Timer reset or a second timer start?
Will both person's be ejected or only one?

Thanks
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-04-2007 22:03
in the simple method, the second person will reset the wait time before ejecting.

at the very least in your collision you should be checking for the name in a list, if it's NOT there, add it and trigger the timer. then when the timer goes off, eject everyone in that list

you can script multiple timers for each person, by setting the timer once, then in your collision event ad both a name AND a time entered to a list

each time the timer fires, check the list time vs current time, if current time is more by x seconds, trip the sensor. in the sensor, if detected, eject them, and then remove the name from the list regardless. this means your time is ALWAYS running though... suggest about 1/2 of your wait time between detection and ejection
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
11-05-2007 10:05
Thanks Void,

Scripting is slowing going better but with event i have often difficulties.
Wit your answer i understand it better, thanks

Kaylan