Don't click here unless you want to be banned.

LSL Wiki : llCollisionFilter

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl836.us.archive.org
llCollisionFilter(string name, key id, integer accept)

If accept is TRUE, then the script only triggers collision events when colliding with the object or avatar specified by name and id. Otherwise, the script only accepts collisions with objects or avatars that are not name and id. Either parameter is optional, "" can be passed for name to specify objects or avatars with any name, and NULL_KEY can be passed for id to specify objects or avatars with any UUID.

Stop filtering:
llCollisionFilter("", NULL_KEY, TRUE);

Filter out all collisions:
llCollisionFilter("", NULL_KEY, FALSE);

This can be very useful if you only care about collisions from a specific avatar, such as the current player of a game--it can prevent other people from disturbing the gameplay.

Notes:



This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Detection Functions | Collisions
Comments [Hide comments/form]
Attach a comment to this page: