Page 1 of 1

Custom Fishing Rod

PostPosted: 13 Mar 2009, 15:37
by Roenik
Hello,

I'm new to LSL and I have an issue with the custom script for a rod I'm making.

I'm listening on channel 77077 with a few handles for cast, catch, miss, etc.

My problem is with llRequestPermissions for the animations.

Where do I include the requestpermissions statement?

Any help is appreciated.

Thank you.

-Roe

Re: Custom Fishing Rod

PostPosted: 14 Mar 2009, 07:37
by Seven Shikami
Pop open you OpenSeas kit (ask someone in Social to send it to you if you don't have one). There's an OpenRod script in there that probably does what you want already. :) At the very least it'll include examples of how to request permissions to animate.

Re: Custom Fishing Rod

PostPosted: 14 Mar 2009, 19:38
by Roenik
Thank you Seven :)

I've got the custom rod working now, with animations.

Only one problem now is that the custom rod reacts to chat from other rods nearby. My listen statement uses the name "(7S) Invisible Pro Fishing Rod (No Animations) with channel -77077.

When other people cast/catch/miss it triggers my animations. I've tried using llGetOwner() in my listen but it doesn't help.

Cordially,

-Roe

Re: Custom Fishing Rod

PostPosted: 14 Mar 2009, 20:24
by Seven Shikami
The OpenRod script also deals with this problem nicely.

What it does is it leaves the channel open, but once it hears from an object owned by someone that matches the rod's owner, that means it can "lock on" to that rod and only listen to it. Prevents any crosstalk, cuts down on lag considerably. If the custom rod ever desyncs (say they un-wear their invisible rod and then re-wear it) it can resync with a single click.

Re: Custom Fishing Rod

PostPosted: 15 Mar 2009, 04:57
by Roenik
Thank you kindly for your help Seven.

Kudos for a wonderful game system :)

-Roe