Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Collision help

Starra Toshi
Registered User
Join date: 2 Apr 2008
Posts: 7
04-02-2008 16:33
Hi,
I have been trying to get collision working on a object with the following script. I have only rezzed a cube and throw the script in there.

default
{
collision_start(integer number)
{
llsay(0, "Hit";);
}
}

The say function is not getting triggered. Am I doing something wrong? Please help. Thanks.

~Starra Toshi
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
04-02-2008 16:46
What are you doing to cause a collision? Have you tried walking into the object?
Starra Toshi
Registered User
Join date: 2 Apr 2008
Posts: 7
04-02-2008 16:48
yea, I have tried walking into the object but nothing triggered.

~Starra Toshi
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
04-02-2008 16:51
Hmm... I'm not a physics expert, but that script looks OK to me :) Try adding a touch_start and see if that's triggered when you touch it, to make sure the parcel allows scripts, the script isn't disabled due to some other reason, etc.
Starra Toshi
Registered User
Join date: 2 Apr 2008
Posts: 7
04-02-2008 17:00
Hmm....that's weird. When I add touch_start, it doesn't trigger either. It is just a simple object I rezzed. I am very puzzled why it doesn't work. Any idea??
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
04-02-2008 17:01
The most logical explanation is that you are in a region that has scripts turned off. There's a little icon at the top of your window that tells you this, but it may not be obvious if you don't know what to look for. Try the same experiment in a sandbox, or some other place where you know scripts are enabled.
Starra Toshi
Registered User
Join date: 2 Apr 2008
Posts: 7
04-02-2008 17:13
I am such a noob. That's indeed the problem. Don't know why they changed the permission since I used to be able to create script here. Thanks for the help!!

~Starra Toshi