Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I need a script :-)

Andy Oto
Registered User
Join date: 5 Aug 2006
Posts: 12
02-01-2007 03:17
Hello

At first sorry for my bad english

i need a scricpt who says as (soundfile) "hello" or another when a avi near a point at 5 meters range and says goodbye ( soundfile) when he leave a range from 15-20 meters.

is that possible or gives so script?

Andy
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
02-01-2007 04:22
From: Andy Oto
Hello

At first sorry for my bad english

i need a scricpt who says as (soundfile) "hello" or another when a avi near a point at 5 meters range and says goodbye ( soundfile) when he leave a range from 15-20 meters.

is that possible or gives so script?

Andy


yes its posisble, however this forum is not here to get other people to write scripts for you, just to help out when you get stuck writing your own scripts.

What you need to do is reasonably trivial:

When av approaches within trigger range (llSensor or llVolumeDetect..)
Add to List of near by av's
Say Hello (llPlaySound or llTriggerSound)

When an av on the list gets beyond a limit (llSensor or llVolumeDetect again)
delete from List of near by av's
Say Goodbye (llPlaySound or llTriggerSound)

The problem will be if people TP away rather than walk/fly.

You may find that your sound cannot be heard at a specifc range due to its volume/fall off characteristics
Andy Oto
Registered User
Join date: 5 Aug 2006
Posts: 12
02-01-2007 05:28
hi
ty for your answer

no, I do not need script writing, i am happy for each tip who writes a script or if there is already that as it means.
Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
02-01-2007 16:32
Andy,
Try searching the SCRIPT LIBRARY for 'Proximity' or 'Sensor'.

The library has complete scripts that you can use.

Here's one that makes a 'radar' to detect avitars:

http://forums.secondlife.com:80/showthread.php?t=4629&highlight=sensor