|
Frankie Huldschinsky
Registered User
Join date: 7 Apr 2007
Posts: 1
|
08-09-2007 23:43
I'm figuring out a way to write huge amount of software in Second Life. What I'm attempting to do is to reference a script's function from another script in the same object. But the problem is that function scope is only per script and not per object.
Is there any way to "import" other script function or states from another script or better from another object referincing it as a normal Object Oriented call?
If yes, is there a way to reference a "this"/"self" object from the script?
Hope someone can help
Thanks Frankie
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
08-10-2007 02:17
Nope.
You'll have to stick to linkmessages and other means of communicating whatever you need to the objects.
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
08-10-2007 02:28
You can use the LINK_THIS constant to send information from one script to another within the same object.
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
08-10-2007 02:29
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|