I made a simple code,
default
{
collision(integer num_detected)
{
llSay(0, "X"

}
}
However, no matter what I hit against it, it won't say anything. What's wrong with this?
These forums are CLOSED. Please visit the new forums HERE
Problems with collisions |
|
SirCorn Alter
Registered User
Join date: 23 Jul 2009
Posts: 27
|
08-24-2009 21:44
I'm trying to make something happen when two objects collide... but it's not cooperating.
I made a simple code, default { collision(integer num_detected) { llSay(0, "X" ![]() } } However, no matter what I hit against it, it won't say anything. What's wrong with this? |
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
08-24-2009 22:55
are you in an area that has scripts disabled? other than that, i have no idea why it wouldn't work
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
Viktoria Dovgal
…
![]() Join date: 29 Jul 2007
Posts: 3,593
|
08-24-2009 23:51
A couple of possibilities:
Is the object with the script set as phantom? That will make it ignore collisions. If you need to catch collisions with a phantom object, you can use llSetVolumeDetect(TRUE) instead. For that case, you will want to use collision_start and/or collision_end, it doesn't play well with the collision event. How are hitting against the object? It should pick up avatars or physical objects, but a nonphysical object won't really collide with it (unless the object with the script is physical, that is - at least one has to be). |