LSL Wiki Mirror 7-7-7 : llCollisionFilter

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
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:


Functions | Detection Functions | Collisions
There is no comment on this page. [Display comments/form]