|
TheLoneWolf Arkin
Registered User
Join date: 26 Jan 2007
Posts: 29
|
04-09-2007 02:45
Hi, llBreakLink and llCreateLink are new to me and i have been struggling with it all night without succes  the wikki has no example on how to use these  what i want to do is to break up 1 specific prim from the group, do an action in it, and then relink it to the group. can somebody give me a samll example on how to do this? the furter devolepment will be no problem as i only could have a small example on how to use these options. ty. i apreciate any help.
|
|
Twisted Pharaoh
if ("hello") {"hey hey";}
Join date: 24 Mar 2007
Posts: 315
|
04-09-2007 03:16
Sure, you need to call llRezObject() first then you would use it like this: object_rez(key id) { llOwnerSay("id="+(string)id+"("+llKey2Name(id)+")") ; llCreateLink(id, TRUE) ; llMessageLinked(2, 0, "", mykey) ; llBreakLink(2) ; llOwnerSay("child->"+(string)llGetLinkKey(2)) ; ...
I guess your problem is to find the correct link number of your prim, as it might change if you unlink and relink it.
|
|
TheLoneWolf Arkin
Registered User
Join date: 26 Jan 2007
Posts: 29
|
04-09-2007 03:25
thnx, but that is not what it need to do  what it does is i rez an object out of inventory (a group of linked prims) i give an chat command what triggers a script reset in a certain prim. the problem i have is multiple prims react to the scriptreset of that one prim  as before when there are not linked evetrything worked fine. so my idea was to unlink the prim, reset the script so it doesnt affect the group, and relink it to the group. so as you can see there is no llRezObject involved in this procedure  the object already is linked to the group when we started the routine. omg i'm getting a headeach  time to take a little break i think  but tnx anyway. appreciate it.
|
|
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
|
04-09-2007 05:40
http://rpgstats.com/wiki/index.php?title=LlResetOtherScriptFrom: someone llResetOtherScript(string name)
Resets script named name in the same prim as the script calling this function. This allows one script to reset another.
This currently does not reset a script that stopped with a run-time error (like a stack-heap collision or a bounds check error), so it's of limited use. This also includes scripts being suspended by a function (like llEmail).
|