Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Basic example without a landmark in the object's inventory, while facing the avatar towards the center of the region:
- default
- {
- touch_start(integer num_detected)
- {
- llRequestPermissions(llGetOwner(), PERMISSION_TELEPORT);
- }
- run_time_permissions(integer perm)
- {
- if (PERMISSION_TELEPORT & perm)
- {
- vector region_pos = <100, 130, 40>;
- vector look_at = <128,128,40>;
- llTeleportAgent(llGetPermissionsKey(), "", region_pos, look_at);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement