|
Jackson Racer
Mhm I gotta SL Blog
Join date: 19 Dec 2006
Posts: 130
|
05-13-2008 11:21
I'm really new to scripting but having a hard time on the free Linden boat script that I'm using, in a of course a boat I made. The problem is the Ownership portion of the script I know to remove or edit out the ownership part (or so I think) so that others can use the boat but every time I try to edit it there is get script error.
Can someone please explain to me just how to edit it so that others can use the boat?
One other question, I'm thinking of using Die when they jump off the boat, is there any particular place to add this. Like at the start of the script or end?
Thanks in advance
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
05-13-2008 14:21
i belive the LL script it has if(agent) ? not 100% sure any more any chance you can post it, or say what errors you are ageting?
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
05-13-2008 15:05
this is from the freebie one, it you get on and it ejects you try changing the parts around should work changed(integer change) { if (change & CHANGED_LINK) { key agent = llAvatarOnSitTarget(); if (agent) { if (agent) { // You sit and are owner so get controls llSetStatus(STATUS_PHYSICS, TRUE); llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y | STATUS_ROTATE_Z, TRUE); llRequestPermissions(agent,PERMISSION_TAKE_CONTROLS); } else { // You stand so boat stops llMessageLinked(LINK_ALL_CHILDREN, 0, "stop", NULL_KEY); llSetStatus(STATUS_PHYSICS, FALSE); llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y | STATUS_ROTATE_Z, FALSE); llReleaseControls(); llStopSound(); llSetTimerEvent(0.0); }
} } }
|
|
Jackson Racer
Mhm I gotta SL Blog
Join date: 19 Dec 2006
Posts: 130
|
05-15-2008 08:58
Thank you for taking the time to explain that to me. I have it working now... as for the Die function I set the boats to Temporary. It works like a charm...
|