|
Peng Constantine
Registered User
Join date: 22 Aug 2008
Posts: 4
|
09-08-2008 08:19
Hi,
I have written a local teleporter script using llSetLinkPrimitiveParams, it worked several days before, but I just use it again, strange things happen. The avatar just stop half way from the start point to the destination. I am wondering whether llSetLinkPrimitiveParams does not work? And how can I get rid of it? Any suggestion is appreciated.
Many Thanks!
Peng
|
|
Peng Constantine
Registered User
Join date: 22 Aug 2008
Posts: 4
|
09-08-2008 08:22
the main code is very simple, as followings: default { state_entry() { llSetText("Teleporter",<255,255,255>,5); llSitTarget(<0.5,0,0.55>,ZERO_ROTATION); llListen(999,"",NULL_KEY,""  ; } listen(integer channel, string name, key id, string message) { vector destination; if ( llToLower(message) == "teleport to visitor centre" ) { destination = <52,185,25>; // Coordinates of Visitor Centre } string sitter; if ((sitter = llAvatarOnSitTarget()) != NULL_KEY) { llSay(0,message); llSetLinkPrimitiveParams(llGetNumberOfPrims(), [PRIM_POSITION, destination - llGetPos()]); llUnSit(sitter); } } touch_start(integer sp) { llSay(0, "Please sit and touch where to teleport on Visitor Map"  ; } }
|
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
09-08-2008 08:42
I think you'd be better off using warppos. Search around in the wiki, there's probably at least one copy there.
This issue has come up a few times at Andrew's office hour. There's sorta two camps: one thinks llSetLinkPrimParams should be able to pseudo-teleport people around - there's even a sub-camp that thinks it should be able to move people sims away.. The other camp thinks it should llSLPP should always enforce linkability limits, regardless of if you're moving a prim or an avatar - this camp wants llTeleport to be added instead of 'fixing' llSLPP (again).
|
|
Peng Constantine
Registered User
Join date: 22 Aug 2008
Posts: 4
|
09-09-2008 11:12
Thanks, Sindy Tsure. I will check that, warppos, on wiki. I wish llTeleport can be added someday, if so, really helpful 
|
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
09-09-2008 11:17
From: Peng Constantine Thanks, Sindy Tsure. I will check that, warppos, on wiki. I wish llTeleport can be added someday, if so, really helpful  I think it's probably pretty easy to add just the llTeleport function itself... The tricky part, if I understand it, is working out the details on exactly how it should work. Permissions, in particular, need some thinking about before LL does this.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!! - Go here: http://jira.secondlife.com/browse/SVC-1224- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
09-10-2008 12:02
|