Jump to content

Play sound on Impact?


Error403Forbidden
 Share

You are about to reply to a thread that has been inactive for 1538 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Just be sure that your script includes something that behaves like this ....

collision_start(integer num)
{
     llTriggerSound("My bell sound",1.0);
}

You'll want to embellish that with tests to be sure that you don't ring the bell more than once per person, or ring it only as someone enters.  And of course you'll want to be sure that your state_entry event includes llVolumeDetect(TRUE) so that the phantom trigger can be a detector.

EDIT;;  /me waves to Fenix.  ;)   You're faster this morning.

Edited by Rolig Loon
  • Like 1
Link to comment
Share on other sites

1 minute ago, Rolig Loon said:

Just be sure that your script includes something that behaves like this ....


collision_start(integer num)
{
     llTriggerSound("My bell sound",1.0);
}

You'll want to embellish that with tests to be sure that you don't ring the bell more than once per person, or ring it only as someone enters.  And of course you'll want to be sure that your state_entry event includes llVolumeDetect(TRUE) so that the phantom trigger can be a detector.

EDIT;;  /me waves to Fenix.  ;)   You're faster this morning.

I'll give it a go I'm very new to scripts ^^

Link to comment
Share on other sites

6 minutes ago, KlDDO said:

would make the object like a door mat count as collision?

The wiki page for llVolumeDetect I linked above has more details (and examples on how to use) but generally speaking, llVolumeDetect works similar to phantom. The object becomes non-solid and avatars and physical objects pass through with ease. Unlike phantom, the server still keeps track of collisions with llVolumeDetect objects. So when something moves through, it will trigger collision_start and collision_end events for any scripts within the object.

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1538 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...